bhandaribhumin opened a new issue #887: android build error URL: https://github.com/apache/cordova-android/issues/887 # Bug Report I try to add android but got some error ### Command or Code **project.property** ``` target=android-28 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.gradle.include.1=cordova-plugin-background-fetch/campus-build.gradle cordova.system.library.1=com.google.android.gms:play-services-location:16.+ cordova.system.library.2=com.android.support:appcompat-v7:28.+ cordova.system.library.3=com.squareup.okhttp3:okhttp:3.12.+ cordova.system.library.4=org.greenrobot:eventbus:3.0.0 cordova.system.library.5=com.intentfilter:android-permissions:0.1.8 cordova.system.library.6=org.slf4j:slf4j-api:1.7.25 cordova.system.library.7=com.github.tony19:logback-android:1.3.0-2 cordova.gradle.include.2=cordova-background-geolocation-lt/campus-build.gradle cordova.system.library.8=com.android.support:support-annotations:27.+ cordova.gradle.include.3=cordova-plugin-ms-adal/campus-adal.gradle cordova.gradle.include.4=cordova-support-google-services/campus-build.gradle cordova.gradle.include.5=phonegap-plugin-multidex/campus-multidex.gradle cordova.system.library.9=com.android.support:support-v13:27.+ cordova.system.library.10=me.leolin:ShortcutBadger:1.1.17@aar cordova.system.library.11=com.google.firebase:firebase-messaging:17.0.+ cordova.system.library.12=io.sentry:sentry-android:1+ ``` ### Environment, Platform, Device Ionic: Ionic CLI : 5.4.13 (/Users/bhumin3imac/.npm-global/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.11.3 @angular-devkit/build-angular : 0.801.3 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.1.3 @ionic/angular-toolkit : 2.0.0 Cordova: Cordova CLI : 9.0.0 ([email protected]) Cordova Platforms : android 8.1.0, ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.1, (and 14 other plugins) Utility: cordova-res : 0.8.1 native-run : not installed System: Android SDK Tools : 26.1.1 (/Users/bhumin3imac/Library/Android/sdk) ios-sim : 8.0.2 NodeJS : v12.13.0 (/usr/local/bin/node) npm : 6.12.0 OS : macOS Mojave Xcode : Xcode 11.2 Build version 11B52 ### Version information cordova-background-geolocation-lt 3.2.0 "BackgroundGeolocation" cordova-plugin-background-fetch 5.5.0 "CDVBackgroundFetch" cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack" cordova-plugin-compat 1.2.0 "Compat" cordova-plugin-device 2.0.2 "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-file 6.0.2 "File" cordova-plugin-file-transfer 1.7.1 "File Transfer" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview" cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-support-google-services 1.3.2 "cordova-support-google-services" phonegap-plugin-multidex 1.0.0 "Multidex" phonegap-plugin-push 2.3.0 "PushPlugin" sentry-cordova 0.17.0 "Sentry" ## Error log ``` ANDROID_SDK_ROOT=/Users/bhumin3imac/Library/Android/sdk (recommended setting) ANDROID_HOME=/Users/bhumin3imac/Library/Android/sdk (DEPRECATED) Starting a Gradle Daemon (subsequent builds will be faster) BUILD SUCCESSFUL in 18s 1 actionable task: 1 executed Subproject Path: CordovaLib Subproject Path: app Downloading https://services.gradle.org/distributions/gradle-4.10.3-all.zip ...........10%...........20%...........30%...........40%............50%...........60%...........70%...........80%...........90%............100% Welcome to Gradle 4.10.3! Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block For more details see https://docs.gradle.org/4.10.3/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) > Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) > Task :app:preBuild UP-TO-DATE > Task :CordovaLib:preBuild UP-TO-DATE > Task :CordovaLib:preDebugBuild UP-TO-DATE > Task :CordovaLib:checkDebugManifest > Task :CordovaLib:processDebugManifest > Task :app:preDebugBuild Dependency resolved to an incompatible version: Dependency(fromArtifactVersion=ArtifactVersion(groupId=com.nimbusds, artifactId=nimbus-jose-jwt, version=5.7), toArtifact=Artifact(groupId=net.minidev, artifactId=json-smart), toArtifactVersionString=[1.3.1,2.3]) > Task :app:preDebugBuild FAILED FAILURE: Build failed with an exception. * What went wrong: Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check. > In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.3.1 ,2.3]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.nimbusds:nimbus-jose-jwt:5.7 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2 .3. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto net.minidev:[email protected] -- Project 'app' depends onto com.nimbusds:[email protected] -- Project 'app' depends onto com.microsoft.aad:[email protected] -- Project 'app' depends onto com.microsoft.identity:[email protected] For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 10m 53s 3 actionable tasks: 3 executed /Users/bhumin3imac/Desktop/git/mobile/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check. > In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.3.1 ,2.3]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.nimbusds:nimbus-jose-jwt:5.7 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2 .3. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto net.minidev:[email protected] -- Project 'app' depends onto com.nimbusds:[email protected] -- Project 'app' depends onto com.microsoft.aad:[email protected] -- Project 'app' depends onto com.microsoft.identity:[email protected] For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 10m 53s [ERROR] An error occurred while running subprocess cordova. cordova build android exited with exit code 1. Re-running this command with the --verbose flag may provide more information. ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
