【问题标题】:Ionic Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check在最新检查期间,Ionic 无法捕获任务“:app:preDebugBuild”属性“compileManifests”的输入文件指纹
【发布时间】:2020-01-09 08:48:49
【问题描述】:

好的,所以我正在开发一个适用于 android 的 ionic 应用程序,这周我更新了插件、cordova 和 ionic,它不会再构建 apk。我知道问题出在 firebase 插件上,但我不知道如何解决。

我创建了一个新的 ionic 项目,安装了最新版本的 cordova 并构建了 apk,它可以工作。 我添加了 firebase 插件(ionic cordova plugin add 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,但仍然遇到同样的错误。

【问题讨论】:

  • 你还在用什么其他插件?
  • 在这种情况下,我只使用了 fire 和 firebase
  • 我猜它不是插件,但我在我的项目中运行了 npm install firebase @angular/fire --save

标签: android firebase ionic-framework build


【解决方案1】:

在最新检查期间,Ionic 未能捕获任务“:app:preDebugBuild”属性“compileManifests”的输入文件指纹 出现这个问题是因为fcm所以
1).首先删除平台

离子科尔多瓦平台 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 build android

【讨论】:

  • 请显示错误然后我会建议你..并显示离子信息的数据..表示平台和cli详细信息
  • 我没有使用 cordova-plugin-firebase-lib 插件?
  • 然后尝试使用 reomve 并添加平台
猜你喜欢
  • 2019-06-09
  • 2018-12-31
  • 2019-06-04
  • 2019-12-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多