Google analytics and advertising ID declaration

I am getting below error when i am trying to publish on Google play store. I have enabled Google analytics on my app. My understanding is that Google Analytics need advertising id com.google.android.gms.permission.AD_ID. Even when google analytics is added and I have enabled Advertising on Google play store, why I am getting this error.

Your advertising ID declaration in Play Console says that your app uses advertising ID. A manifest file in one of your active artifacts doesn't include the com.google.android.gms.permission.AD_ID permission.

If I remove advertising declaration, i get below error.

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

5
6 replies