无法捕获任务':app:preDebugBuild'的输入文件的指纹

时间:2019-09-13 08:57:24

标签: firebase cordova ionic-framework

我正在用Ionic制作一个android应用程序,我更新了一些插件,现在它不能构建apk了,所以我启动了一个新应用程序,看看哪个是导致问题的插件,它是firebase。 当我运行“ ionic cordova build android”时,我收到此消息:

* What went wrong:
Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.0,17.2.0]], but resolves to 17.2.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

我知道它是firebase,因为它是我在新应用中拥有的唯一插件。

我创建了一个从0开始的虚拟机,并按照https://ionicframework.com/getting-started中的说明创建了我的应用程序:

ionic start app sidemenu

添加了科尔多瓦:

cd app
npm install -g cordova

添加了android平台并构建了apk(以查看它是否有效)

ionic cordova platform android
ionic cordova build android

并添加了火力基地

npm install firebase @angular/fire --save
ionic cordova plugin add cordova-plugin-firebase
npm install @ionic-native/firebase

成功添加Firebase后,我尝试构建apk,但出现上面显示的错误。

Ionic:

Ionic CLI                     : 5.2.7 (C:\Users\jmir\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework               : @ionic/angular 4.9.0
@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 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0
Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.1, (and 5 other plugins)

Utility:

cordova-res : 0.4.0
native-run  : 0.2.8

System:

NodeJS : v12.2.0 (C:\Program Files\nodejs\node.exe)
npm    : 6.9.0
OS     : Windows 10

Cordova插件ls

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

0 个答案:

没有答案