Skip to content

Error "Could not find no.nordicsemi.android:dfu:1.11.0" when building cordova-android@10 app #311

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

Closed
jacywang opened this issue Aug 29, 2021 · 4 comments
Labels

Comments

@jacywang
Copy link

** Could not find no.nordicsemi.android:dfu:1.11.0 **
Error "Could not find no.nordicsemi.android:dfu:1.11.0" showed up in Ionic Cordova Android build.
I'm not sure if this is the right place to ask. If not, it would be great if someone can point me in the right direction. Really appreciate it.

I have been using cordova-plugin-dfu-update and it worked well with [email protected]. But once I upgraded to [email protected], the error Could not find no.nordicsemi.android:dfu:1.11.0 showed up. [email protected] is using Gradle 6.5 and [email protected] is using Gradle 7.2.
I'm wondering if this library is not uploaded to certain places, such as maven apache shown in the error logs below.

Logs

Task :app:checkDebugAarMetadata FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find no.nordicsemi.android:dfu:1.11.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/no/nordicsemi/android/dfu/1.11.0/dfu-1.11.0.pom
- https://repo.maven.apache.org/maven2/no/nordicsemi/android/dfu/1.11.0/dfu-1.11.0.pom

Required by:
project :app

@philips77
Copy link
Member

Did you include

mavenCentral()

in you main build.gradle file?

@philips77
Copy link
Member

Also, the latest version is 1.11.1.

@jacywang
Copy link
Author

Did you include

mavenCentral()

in you main build.gradle file?

Yes, mavenCentral is included. Upgrade from 1.11.0 to 1.11.1 fixed the issue. Thanks! Really appreciate it.

ext.repos = {
    google()
    mavenCentral()
}

@QuentinFarizon
Copy link

The issue is that 1.11.0 is not available on mavenCentral anymore, which is an issue.

I can't upgrade on 1.11.1 because of #303

@philips77 Could you push the 1.11.0 on mavenCentral again ? Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants