Cannot update my app in Google Play since it says:
This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn't use advertising ID.
You must update your advertising ID declaration.
First thing is that the app not using ads.
The library which is injecting the permission is -> jetified-play-services-ads-identifier-18.0.0
but i don't know where it is coming from.
Also to be sure that this permission(no matter what) is deleted, added in my app manifest:
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />
But it is still saying that my app cannot be updated because it is containing that permission. I have checked the manifest via APK analyzer just to be sure, and it doesn't have the permission in the manifest file(i don't know why it is still saying that the permission is there)...
Also updated the Advertising Setting on Play Store:
But still the same is happening :(
UPDATE
Found where this permissions are coming from and disabed those modules:
implementation ("com.google.firebase:firebase-analytics-ktx:21.1.0") {
exclude module: "play-services-ads-identifier"
exclude module: "play-services-measurement"
exclude module: "play-services-measurement-sdk"
exclude module: "play-services-measurement-api"
}
After that change the merged manifest doesn't contains anymore that permission also tested via APK Analyzer too but unfortunately Google Play still says that the app contains the permissions (WEIRD)...
Any help is appreciated :)
app/build/intermediates/manifests/full/debug/AndroidManifest.xml
Have you checked? Actually, we were facing the same issue for the last 3 days. In our casetools:node="remove"
did the job. You may get help from here or here. – Tortonitools:node="remove"
but the issue still happened. any update on this issue? – Fake