Home › Build error fixes › Android / Gradle

Background location policy rejection

Android / Gradle · last reviewed 2026-11-10

The error looks like this

We detected that your app contains at least one feature that requests background location access, however you have not submitted a permission declaration form

Why it happens

The app (or a library) requests ACCESS_BACKGROUND_LOCATION without an approved declaration, in-app disclosure and video.

How to fix it

  1. If you only need location while the app is open: remove ACCESS_BACKGROUND_LOCATION with tools:node="remove".
  2. Play Console > App content > Sensitive permissions: declare foreground-only use.
  3. If you truly need it: add a prominent in-app disclosure before the permission prompt and submit the declaration with a video.

Not sure this is your error? Let ReleaseMedic read the whole log

Build logs are long and the last line is rarely the real cause. ReleaseMedic finds the first real error, explains it and gives the steps — free, and the log never leaves your computer.

$ npx releasemedic log build.log

Or pipe a build straight in: cd android && ./gradlew bundleRelease 2>&1 | npx releasemedic log -

Catch it before you build

Most release errors come from project settings you can check in seconds — signing, SDK levels, privacy manifests, permissions, push and login setup.

$ npx releasemedic

Related Android / Gradle errors