angular - 如何修复 "Could not determine the dependenci

我正在尝试构建一个 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/

相关文章:

asp.net - 在 Windows Server 上无法确定重定向的 https 端口,但在 P

amazon-web-services - 解码 AWS session token

java - DynamoDB 排序键的多重比较条件?

python - Flask:flask 在 conda 环境中运行不工作 - Windows、Py

python - 为什么当前模块中没有__dict__?

wordpress - 在自定义感谢页面上显示 Woocommerce 订单详细信息

reactjs - ThemeProvider/Typescript 错误 : Types of p

angular - 使用 ngx-image-cropper 在单个图像上使用多个裁剪框

python - 如何输入泛型函数?

angular6 - 无法在 'getUserMedia' : At least one of au