gpt4 book ai didi

java - 错误 : Flutter - Missing 'package' key attribute on element package at [com. google.android.gms :play-services-maps:18. 0.2] AndroidManifest.xml:33:9-64

转载 作者:行者123 更新时间:2023-12-05 04:29:17 26 4
gpt4 key购买 nike

我在 Flutter 中构建 appbundle 时遇到错误

错误:

Building without sound null safety

有关详细信息,请参阅 https://dart.dev/null-safety/unsound-null-safety

[com.google.android.gms:play-services-maps:18.0.2] C:\Users\theGODFATHER\.gradle\caches\transforms-2\files-2.1\6f829f42d3699bf76afaf5ddb99cba4b\play-services-maps-18.0.2\AndroidManifest.xml:33:9-64
Error:
Missing 'package' key attribute on element package at [com.google.android.gms:play-services-maps:18.0.2] AndroidManifest.xml:33:9-64

[com.google.android.gms:play-services-maps:18.0.2] C:\Users\theGODFATHER\.gradle\caches\transforms-2\files-2.1\6f829f42d3699bf76afaf5ddb99cba4b\play-services-maps-18.0.2\AndroidManifest.xml
Error:
Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed with multiple errors, see logs

* 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

最佳答案

检查你的android->build.gradle文件

依赖关系{

    classpath 'com.android.tools.build:gradle:4.1.0'. // <- check this line
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.5'
}

关于java - 错误 : Flutter - Missing 'package' key attribute on element package at [com. google.android.gms :play-services-maps:18. 0.2] AndroidManifest.xml:33:9-64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72377305/

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