gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 02:18:45 25 4
gpt4 key购买 nike

好的,所以我正在为 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,仍然出现相同的错误。

最佳答案

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

ionic cordova 平台 rm android

2).删除fcm

cordova 插件 rm cordova-plugin-firebase-lib

3).添加平台

ionic cordova 平台添加 android@latest

4).添加fcm
ionic cordova 插件添加 cordova-plugin-fcm-with-dependecy-updated
npm 安装@ionic-native/fcm

5)ionic cordova构建android

关于android - Ionic 在最新检查期间无法捕获任务 ':app:preDebugBuild' 属性 'compileManifests' 的输入文件指纹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57822612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com