gpt4 book ai didi

android - Google play APK上传错误 Duplicate declarations of permission

转载 作者:行者123 更新时间:2023-11-30 00:31:15 25 4
gpt4 key购买 nike

我尝试上传新的 apk(使用我自己的 relese key store 签名),但在 google play 开发者控制台中出现以下错误。

Duplicate declarations of permission android.permission.ACCESS_COARSE_LOCATION with different maxSdkVersions.

但是之前我可以上传 APK 没有任何错误,我没有做任何与权限相关的更改,所以这是一个奇怪的问题,我在谷歌上搜索并找不到可行的解决方案。这是因为 google play 开发者控制台的新更新吗?

list 权限声明 enter image description here

Gradle 依赖

compile 'com.google.android:annotations:4.1.1.4'
compile 'com.google.android.gms:play-services-location:9.4.0'
compile "com.google.android.gms:play-services-gcm:9.4.0"
compile 'com.google.android.gms:play-services-places:9.4.0'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.google.android.gms:play-services-plus:9.4.0'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
compile 'com.google.android.gms:play-services-wallet:9.4.0'
compile 'com.google.zxing:core:2.2'
compile('com.facebook.android:facebook-android-sdk:4.17.0') {
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'appcompat-v7'
}
compile 'com.android.support:recyclerview-v7:24.2.0'
compile('com.twitter.sdk.android:twitter:1.12.0@aar') {
transitive = true;
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v4'
}
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.android.support:design:24.2.0'

合并 list enter image description here

最佳答案

我遇到了同样的问题。可能您正在使用声明 ACCESS_COARSE_LOCATION 的 api 级别等于或大于 23 的第三方库。为了解决此问题,您可以在 list 中拆分权限。只需将此行替换为您现有的使用许可行:

<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"
android:maxSdkVersion="22"/>

警告:请注意,如果第三方库更改/删除此权限,您的应用将无法在 API 级别 23 及更高级别上运行。所以你应该在上传前检查你的 apk 以确保它工作正常

关于android - Google play APK上传错误 Duplicate declarations of permission,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44299197/

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