gpt4 book ai didi

angular - 如何修复 "Could not determine the dependencies of task ' :app:preDebugBuild'"in Ionic 4 Cordova

转载 作者:行者123 更新时间:2023-12-05 08:11:23 32 4
gpt4 key购买 nike

我正在尝试构建一个 Ionic 4 android 应用程序,它显示了一个 preDebugBuild 错误。它说了一些关于 play-services-measurement-base 被不同版本的库请求的内容,而不是已解决的版本。

我试过了* ionic 修复,*删除然后重新安装更新相关插件(更新它们),*以及删除 node modules 然后执行 npm install

除了那些表面层面的修复,我不知道如何进行。

错误代码如下:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> 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 1m 6s
D:\Projects\Ionic\circular-chain-master\CircularChain\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> 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.

插件列表:

cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-file-opener2 2.2.1 "File Opener2"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-firebase-authentication 3.0.0 "cordova-plugin-firebase-authentication"
cordova-plugin-googleplus 7.0.2 "Google SignIn"
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.3 "Splashscreen"
cordova-plugin-telerik-imagepicker 2.3.3 "ImagePicker"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.3.1 "cordova-support-google-services"

提前致谢!如果缺少信息请告诉我

最佳答案

在你的gradle.properties

库版本 [[17.0.0,17.0.0], [17.2.0,17.2.0]],

17.2.0。

关于angular - 如何修复 "Could not determine the dependencies of task ' :app:preDebugBuild'"in Ionic 4 Cordova,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57879775/

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