Skip to content
Winter Sale from $619, until 31st December 2026 Book now
From agentic coding tool to Google Play Android · Google Play Gemini in Android Studio

Gemini Agent Mode in Android Studio: Clean Google Play Releases When the IDE Writes Code

Gemini in Android Studio can plan a task, change files across the project, build, deploy to a device and check Logcat and screenshots until a fix works. That makes it strong at features and bug fixes – and risky for the files Google Play cares about: Gradle versions, the manifest, signing and anything that changes your Data safety answers. Put rules in AGENTS.md, review those diffs yourself and let Play's testing tracks catch the rest.

7 min read

Key takeaways

  • Agent mode can build, deploy to a connected device, take screenshots and read Logcat – use that loop for features, not for release configuration.
  • Android Studio reads AGENTS.md files, so release rules checked into the repository reach Gemini and other agents alike.
  • A new permission, SDK or target SDK in a diff changes what you must declare in Play Console – treat those diffs as policy changes.
  • The device loop tests debug builds; only the signed release build on the internal track and the pre-launch report show what users get.

What agent mode does in your project

Gemini in Android Studio started as a chat panel. Its agent mode goes further: you describe a goal, the agent makes a plan and works through it with tools – searching and reading files, editing several of them, using MCP servers you configured – and asks for your approval of changes along the way. Google's documentation lists abilities that matter for app work in particular:

  • building the project to check a fix and iterating until build errors are gone,
  • deploying the app to a connected device, inspecting the screen, taking screenshots and reading Logcat,
  • interacting with the running app through input commands to verify a change,
  • running several conversations in parallel, for example tests in one and a feature plan in another.

Depending on your setup you can use Gemini's default model, your own Gemini API key or other model providers; the options change often, so check the current agent mode documentation. None of this touches Play Console. The agent ends where your release process begins – and that seam is where this article focuses.

An AGENTS.md written for releases

Android Studio reads AGENTS.md files from your project and adds their content to the agent's prompts. Because the file sits in the repository, it is versioned, reviewed and shared with every other agent your team uses – Claude Code, Codex or Copilot read the same rules. Android Studio also has IDE-specific rules, but repository files travel better. A release-minded starting point:

## App facts
applicationId: com.example.app (never change)
minSdk 26, targetSdk 36 – change only in a dedicated task
versionCode: set by CI, do not edit

## Do not change without an approved task
- AndroidManifest.xml permissions and services
- signingConfigs, keystore paths, gradle.properties secrets
- Dependencies that collect data (analytics, ads, crash reporting)
- Play Billing integration

## Verify every change with
./gradlew lint testDebugUnitTest
./gradlew bundleRelease (release config, R8 enabled)

Our article on CLAUDE.md and AGENTS.md for mobile projects explains how to structure the file for teams that mix several agents.

Talk to an AI Code Engineer about shipping your app to Google Play.

In a free call we look at what you built, tell you honestly what stands between it and an approved release – and whether you need us at all.

Diffs that change your Play Console answers

On Google Play, code and declarations must agree. When an agent adds a line to fix a bug, it may silently invalidate a form you filled in months ago. Watch for these:

Change in the diffEffect on Google PlayWhat to do
New uses-permission (location, contacts, media, SMS)May need a permissions declaration and a Data safety update; some are restrictedAsk whether a lighter API works, such as the photo picker – see the sensitive permissions guide
New analytics, ads or crash SDKChanges Data safety and possibly the ads declarationUpdate the form before the release goes out
targetSdk raisedNew platform behaviour: edge-to-edge, predictive backTest those screens explicitly; API level 36 is required since August 31, 2026
minSdk raisedOlder devices lose updatesA product decision, not a side effect
Foreground service addedNeeds a declared service type and a Play Console declarationCheck whether WorkManager fits instead
Billing code changedDigital goods must use Play BillingTest purchases with license testers

The full context is in our guides to Data safety rejections and the target API level requirement.

Verify on your device, then on Google's

The agent's device loop is the best thing about agent mode: it sees what you would see. But it usually runs a debug build, and a release build is a different app. R8 shrinks and obfuscates code, reflection-based JSON parsing can break, and signing differs. Add a second loop for releases:

  1. Build the release App Bundle in CI with the same configuration you ship.
  2. Upload it to the internal testing track, the fastest way to get it onto testers' devices.
  3. Read the pre-launch report: Google installs the build on real devices and reports crashes, accessibility problems and security warnings.
  4. Paste each finding into a new agent conversation as a task, with the stack trace or the screenshot.

Our agentic testing workshop goes deeper into building test suites that agents can run and trust.

Signing and tracks: where the agent stops

New apps ship as Android App Bundles with Play App Signing: Google holds the app signing key, you keep the upload key. That key is a credential, not a build input. Keep it in a password manager with a backup, give CI an encoded copy as a secret, and let the agent write only the Gradle code that reads it from environment variables. Android Studio's "Generate Signed Bundle" wizard is fine for a first upload; afterwards, releases should come from CI so nobody's laptop is the single point of failure.

Then use the tracks in order: internal for quick checks, closed for real testers, open if you want a public beta, production with a staged rollout. New personal developer accounts must first run a closed test with at least 12 testers opted in for 14 consecutive days before they can apply for production access – plan that before the agent's first feature lands.

A release routine for IDE-agent projects

  1. Each feature or fix happens on a branch, in one agent conversation, with acceptance criteria.
  2. CI runs lint, unit tests and a release build on every pull request.
  3. A person reviews diffs to the manifest, Gradle files and dependencies before merging.
  4. Policy-relevant changes get a note in the release checklist: Data safety, permissions, ads, billing.
  5. CI uploads the release build to the internal track; the pre-launch report is read.
  6. Promote to closed or production with a staged rollout, and watch crashes and ANRs in Android vitals.

If you want that routine run for you, our AI Code Engineers set up signing, CI/CD, tracks and releases in your own Play Console – see the Android submission service. Building for the iPhone too? Read ChatGPT and Claude in Xcode.

Checklist: agent-built changes before a Play release

  • AGENTS.md states applicationId, SDK levels, protected files and verification commands.
  • No new permission, SDK or foreground service slipped in without a matching Play Console update.
  • targetSdk is 36 and edge-to-edge and back navigation were tested.
  • The release bundle with R8 enabled was installed and tested, not only the debug build.
  • The upload key is backed up outside the repository and only CI signs releases.
  • The pre-launch report shows no crashes, and findings went back to the agent as tasks.

Frequently asked questions

Can Gemini in Android Studio publish my app to Google Play?

No. Agent mode works in your project: it edits, builds, tests and deploys to devices. Uploading to Play Console, filling in the policy forms and releasing to a track are done by you or by your CI pipeline.

Does Android Studio use AGENTS.md?

Yes. Android Studio reads AGENTS.md files and adds them to the agent's context. Keeping release rules there means the same instructions reach Gemini and other coding agents your team uses.

Why does my app work in Android Studio but crash from Play?

Usually because the release build differs from the debug build the agent tested – minification with R8, missing keep rules, different signing or configuration. Test the release bundle through the internal track before you promote it.

Can you take over our Play releases?

Yes. Book a free call and an AI Code Engineer reviews your project and Play Console setup with you. We can run signing, CI/CD, testing tracks and releases in your own account.

Free, 15 minutes, no obligation

Get your app from agent output to approved release.

Our AI Code Engineers take apps built with Claude Code, Codex, Cursor, Lovable, Base44 and co. through signing, CI/CD, store listings and review – in your own developer accounts.

AI tools, store policies and requirements change quickly – always check the current documentation of the tools and stores you use. This article is independent advice and not affiliated with or endorsed by Apple, Google, Anthropic, OpenAI or any other company or product mentioned; all trademarks belong to their owners.

Ready to ship?

Talk to an AI Code Engineer – free, 15 minutes, in English or German.

Book a call for free

Chat and hotline are open 24/7. Answers from our senior AI Code Engineers (real humans) usually take closer to 72 hours than 1 hour.