Skip to content

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

@AmrTawfek

Description

@AmrTawfek

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions