Ionic在最新检查期间无法捕获任务':app:preDebugBuild'属性'compileManifests'的输入文件的指纹

时间:2019-09-06 13:04:40

标签: android firebase ionic-framework build

Okey,所以我正在开发适用于Android的离子应用程序,本周我更新了插件,cordova和ionic,它将不再构建apk。我知道问题出在Firebase插件上,但我不知道如何解决。

我创建了一个新的ionic项目,安装了最新版本的cordova并构建了apk,它可以正常工作。 我添加了firebase插件(离子cordova插件添加cordova-plugin-firebase + npm install @ ionic-native / firebase)并尝试构建apk,但出现以下错误:

BUILD FAILED in 1s
C:\Users\jmir\goInstall\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.
> 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.

* 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 1s
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

我无法向您显示一些代码,因为我真的没有做任何更改,只是添加了我需要的插件。

我曾经尝试使用ionic,cordova和firebase的旧版本,但仍然遇到相同的错误。

1 个答案:

答案 0 :(得分:0)

离子在最新检查期间无法捕获任务':app:preDebugBuild'属性'compileManifests'的输入文件的指纹 发生此问题是因为fcm所以
1)。首先删除平台

ionic cordova平台rm android

2)。删除fcm

cordova插件rm cordova-plugin-firebase-lib

3)。添加平台

ionic cordova平台添加android @ latest

4)。添加fcm
离子Cordova插件添加cordova-plugin-fcm-with-dependecy-updated
npm install @ ionic-native / fcm

5)ionic cordova构建android