【发布时间】: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