Android doesn't compile
phyr0s opened this issue · 3 comments
Expected Behaviour
Compile
Actual Behaviour
Not compile
Error -->
`
- 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.1 -> 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:json-smart@2.3
-- Project 'app' depends onto com.nimbusds:nimbus-jose-jwt@5.1
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.
`
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Install plugin and build
Cordova CLI version and cordova platform version
cordova --version 9.0.0
cordova platform version android 8.1.0
Plugin version
2.3.0
Previous version compile OK but 2.3.0 doesn't compile
i had also faced the same issue
i have same issue, anybody have a solution?
===
- 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.1 -> 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:json-smart@2.3
-- Project 'app' depends onto com.nimbusds:nimbus-jose-jwt@5.1For 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 build.gradle file.
=====
`Ionic:
Ionic CLI : 5.4.9 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.5
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 46 other plugins)
Utility:
cordova-res : 0.6.0 (update available: 0.8.1)
native-run : not installed
System:
Android SDK Tools : 25.2.3 (/Users/taufpate/Library/Android/sdk/)
ios-deploy : 2.0.0
ios-sim : 8.0.2
NodeJS : v10.17.0 (/usr/local/Cellar/node@10/10.17.0/bin/node)
npm : 6.11.3
OS : macOS Mojave
Xcode : Xcode 11.2.1 Build version 11B500
`
I struggled with this and tried various solutions I saw in threads but it was finally a modified version of this that worked for me. In my case I changed the dependencies
section of app.gradle
to add this line:
implementation 'com.google.android.gms:play-services-stats:16.0.1'
I barely know what I’m doing here but it at least let the project build.