Google AI Studio: Permission Denied & Location Not Supported Loop on Android

Hello. My account is failing to connect to Google AI Studio on Android, throwing a USER_LOCATION_STRUCT_NOT_SUPPORTED error and a Permission Denied project token block. My physical location profile is clear, but the backend API drops the session requests immediately. Please reset the region restriction on my developer project ID. This is happening across multiple accounts on my device.

Hello @Ruth_Okojie,

The USER_LOCATION_STRUCT_NOT_SUPPORTED loop combined with a project token block usually triggers when there is a mismatch between the device’s broadcasted telemetry, network configuration, and the Google Cloud project’s region setup.

Since it is happening across multiple accounts on the same Android device, here are the official troubleshooting steps to resolve this regional API drop:

1. Verify Google Play Services & Device Region

The backend API for Google AI Studio reads the region directly from your device’s core system settings rather than just your IP address.

  • Go to your device Settings > System > Languages & Region and ensure your current physical region matches exactly.
  • Go to Settings > Apps > Google Play Services > Storage and clear its cache. This forces Google’s location-based token system to re-evaluate your device profile.

2. Disable Network-Level Proxies, VPNs, or Private DNS

If you are using a Private DNS (like NextDNS or AdGuard) or a VPN/Proxy network configuration, the Gemini API backend might flag the structural location metadata as obfuscated or corrupted.

  • Temporarily disable any active VPNs or custom DNS protocols.
  • Switch from Wi-Fi to Mobile Data (or vice versa) to see if a specific network routing is causing the session requests to drop.

3. Check Google Cloud Project Constraints

Community members or forum moderators cannot manually reset specific developer project IDs. However, you can verify if a regional restriction policy is active:

  • Go to the Google Cloud Console associated with your AI Studio project.
  • Navigate to IAM & Admin > Organization Policies.
  • Search for the policy named “Define allowed resource locations” (gcp.resourceLocations.allowedRegions). If this policy is enforced on your organization or project level, it will block backend API access even if your physical location is supported.

If your device configuration is completely stock and the issue persists across all networks, it is highly likely a temporary backend telemetry glitch on the API endpoint, and a Google engineer on this forum will need to flag it for backend review.

Hello @Ruth_Okojie,

Could you please confirm which location you are trying to access AI Studio from? And you can refer to the Google AI Studio regional and account settings documentation (https://ai.google.dev/gemini-api/docs/available-regions) for more details.

Hello! It has been sorted out and fixed. Thank you.