今天我收到这封电子邮件:
\n\n\n去年 7 月,我们宣布了广告政策变更,以帮助加强\n安全和隐私。我们对针对儿童的应用使用的标识符添加了新的限制。\n 当用户选择删除其\n广告 ID 以退出个性化广告时,\n如果开发人员尝试访问标识符,\n他们将收到一串零而不是标识符。从 2022 年 4 月 1 日起,此行为将扩展到手机、平板电脑和 Android TV。我们还\n宣布,当您将应用的目标 API 级别更新为\n31 (Android 12) 时,\n您需要声明 AD_ID 权限。今天,我们宣布\n我们将给予开发者更多时间来缓解过渡。当您的应用能够定位\nAndroid 13 而不是从 Android 12 开始时,\n我们将需要此权限声明。
\n操作项 如果您使用广告 ID,则当您的应用面向 Android 13 或更高版本时,您必须声明 AD_ID\n权限。不\xe2\x80\x99t\n声明权限的应用程序将获得一串零。注意:今年晚些时候,您\xe2\x80\x99 将能够面向 Android 13。如果您的应用使用已声明广告 ID 权限的 SDK,\n它将通过清单合并获取该权限声明。如果您的应用\xe2\x80\x99 的目标受众\n包括儿童,则不得传输\n儿童或未知年龄用户的 Android 广告 ID (AAID)。
\n
我的应用程序未使用广告 ID。我是否应该AD_ID在清单中声明权限?
java android admob google-advertising-id google-play-console
我刚刚发现我的 Google Play 服务正在添加到合并的清单 AD 权限中,因此我无法将应用程序上传到我的 Play 商店,因为它需要推理为什么我想要在我的应用程序中添加广告(我不需要)。
这些是我的 gradle 库:
//Google SDK
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.google.android.gms:play-services-auth:20.3.0'
implementation 'com.google.android.gms:play-services-location:20.0.0'
implementation 'com.google.android.gms:play-services-maps:18.1.0'
implementation 'com.google.maps.android:android-maps-utils:2.0.3'
//GCM for internet connection monitoring
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
//GooglePay
implementation 'com.google.android.gms:play-services-wallet:19.1.0'
//Google Firebase SDK - Crashlytics, Firebase Messaging
implementation 'com.google.firebase:firebase-core:21.1.1'
implementation ('com.google.firebase:firebase-crashlytics:18.2.13') {
transitive = true
}
implementation 'com.google.firebase:firebase-messaging:23.0.8'
Run Code Online (Sandbox Code Playgroud)
看起来像它的谷歌分析(firebase)。但我不想也不在我的应用程序中使用任何广告内容,所以我不明白为什么 Google 在未经我批准的情况下将这些内容添加到我的应用程序中。
我只是尝试这样做:
implementation 'com.google.firebase:firebase-core:21.1.1' {
exclude module: "play-services-ads-identifier"
exclude module: "play-services-measurement"
exclude module: "play-services-measurement-sdk"
}
Run Code Online (Sandbox Code Playgroud)
正如我发现的,但它甚至没有编译(得到 GradleScriptException):
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method com.google.firebase:firebase-core:21.1.1() for …Run Code Online (Sandbox Code Playgroud) We are facing issue related manifest marge after changed in merged file error is:
"The prefix "tools" for attribute "tools:node" associated with an element type "uses-permission" is not bound."
Why this error occur and how to solve this ?
We are trying to add line in application tag for override but not solve ,searching more all gives answer to add line in top for tools added this but also not solve.
After replace manifest with old files but also giving …