Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLutter Build Fails with Huawei DeepLinking Integration : Could not find com.huawei.agconnect:applinking:1.6.0.300. #16

Open
AmrTawfek opened this issue Dec 13, 2024 · 0 comments

Comments

@AmrTawfek
Copy link

AmrTawfek commented Dec 13, 2024

I am experiencing an issue integrating the Huawei App Linking SDK into my Flutter project, specifically with the version 1.6.0.300. Despite following the standard setup procedures and ensuring correct configuration of repositories and dependencies, the SDK cannot be resolved by Gradle. Below, I provide a detailed account of my development environment, the problematic behavior, and previous successful integrations with other Huawei SDKs.

Development Environment:

Flutter Version: 3.24.5
Gradle Version: 8.10.2 (distribution URL: https://services.gradle.org/distributions/gradle-8.10.2-all.zip)
AG Connect Plugin Version: agconnect_applinking: ^1.9.0+300
Android Studio Version: (Android Studio Ladybug | 2024.2.1 Patch 3)

build.gradle Configuration:

Project Level (android/build.gradle):

allprojects { repositories { google() mavenCentral() jcenter() maven { url 'https://developer.huawei.com/repo/' } } }

App Module Level (android/app/build.gradle):

dependencies { implementation 'com.huawei.agconnect:applinking:1.6.0.300' }

Error Message

Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.

Could not find com.huawei.agconnect:applinking:1.6.0.300.

 Searched in the following locations:

   - https://dl.google.com/dl/android/maven2/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

   - https://repo.maven.apache.org/maven2/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

   - https://jcenter.bintray.com/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

   - https://developer.huawei.com/repo/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

   - https://storage.googleapis.com/download.flutter.io/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

   - https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1/com/huawei/agconnect/applinking/1.6.0.300/applinking-1.6.0.300.pom

 Required by:

     project :app

Previous Successful Integrations: I have successfully integrated other Huawei services, including the Huawei SDK, Huawei Push, and Huawei Analytics, without encountering similar issues. This suggests that the problem is specific to the App Linking SDK or its particular version.

Troubleshooting Steps Taken:

Verified the version number and availability of com.huawei.agconnect:applinking:1.6.0.300 on the Huawei Developer website.
Cleared the Gradle cache and synchronized the project multiple times.
Attempted to build the project using different network environments to rule out network-related issues.
Reviewed and confirmed the repository URLs in the Gradle configuration files.

The persistence of this issue despite successful integrations with other Huawei components is puzzling!!!

Could anyone please provide guidance or assistance in resolving this specific SDK integration problem?

@AmrTawfek AmrTawfek changed the title FLutter Build Fails with HMS Integration : Could not find com.huawei.agconnect:applinking:1.6.0.300. FLutter Build Fails with Huawei DeepLinking Integration : Could not find com.huawei.agconnect:applinking:1.6.0.300. Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant