I'm always excited to take on new projects and collaborate with innovative minds.
Court Road, Gujrat, Pakistan
Android Studio Panda 2 ships with a Gemini AI agent that builds apps from a single prompt. My honest whole week review with starter prompts, real results & tips.
Panda 2 is a feature-drop release built on top of Panda 1. The version number is 2025.3.2, based on IntelliJ IDEA Community Edition as always. The headline additions are two agentic AI features powered by Gemini:
Both live inside the IDE. No browser tab-switching, no copy-pasting from a chatbot. That alone is a bigger deal than it sounds.
The AI defaults to Gemini. There's a free tier using a lightweight Gemini 2.5 Pro variant with a smaller context window, and a paid/business tier for heavier use. Panda 2 also introduces a Gemini 3.1 Pro preview accessible by plugging in your own Gemini API key — and it's noticeably sharper on multi-step reasoning tasks.
Update via Help → Check for Updates or download directly from the Android Developer site. The installation is painless.
The one thing I'd tell you to do before you start prompting: configure your .aiexclude file. It works exactly like .gitignore and tells Gemini which files to skip when reading your project context. If you're working on anything client-facing or proprietary, this is five minutes well spent.
# .aiexclude — put this in your project root
**/secrets/**
**/local.properties
**/*.keystore
**/google-services.jsonOn the free tier, you'll hit the context window limit faster than expected on a large existing project. For greenfield work — which is where Panda 2 really shines — it's absolutely fine.
This is the feature that will change how you start projects. Here's the exact loop:
The loop typically takes 10–20 minutes, depending on complexity. You're asked to approve file edits along the way — you're not locked out. The output uses Kotlin, Jetpack Compose, and the latest stable libraries by default. For most of my tests, the generated code was clean enough that I wouldn't be embarrassed to show it to another developer.
The quality of your prompt directly determines how much cleanup you do afterward. Here are the prompts I tested, refined, and can recommend.
Use this when you want a production-ready starting point with proper separation of concerns.
📋 Copy & Paste Prompt
Create an Android app using Kotlin and Jetpack Compose with Clean Architecture.
Architecture:
- MVVM pattern with ViewModel and StateFlow for UI state management
- Three layers: presentation (Compose screens + ViewModel),
domain (use cases), data (repository + data sources)
- Hilt for dependency injection
UI / Theme:
- Material 3 design system
- Primary color: #1B6CA8 (deep blue), secondary: #E8F4FD (light blue)
- Dark theme support using isSystemInDarkTheme()
- Custom typography using Google Fonts (Inter)
Features to scaffold:
- HomeScreen showing a list of items fetched from a repository
- DetailScreen navigated to on item tap
- Jetpack Navigation Component with a NavHost
- Loading, success, and error states via sealed class UiState
Dependencies:
- Hilt, Retrofit + OkHttp (mocked), Coil, Navigation Compose, Coroutines + Flow
Target SDK: 35. Min SDK: 26.UiState, and the correct color scheme. Repository stubbed with mock data. I spent ~20 minutes reviewing ViewModel logic — the scaffolding was solid.Use this for finance trackers, task managers, or any app where local persistence comes first.
📋 Copy & Paste Prompt
Create an Android app using Kotlin, Jetpack Compose, and Clean Architecture
for an offline-first to-do list manager.
Architecture:
- MVVM with ViewModel + StateFlow. Clean layers: presentation, domain, data.
- Hilt for DI.
Data layer:
- Room database with Task entity (id, title, description, isCompleted, createdAt)
- TaskDao: insert, update, delete, getAll (as Flow<List<Task>>)
- TaskRepository interface in domain, RoomTaskRepository in data layer
Domain layer:
- Use cases: GetTasksUseCase, AddTaskUseCase, ToggleTaskUseCase, DeleteTaskUseCase
Presentation:
- TaskListScreen: list of tasks, FAB to add, swipe-to-delete, tap to toggle complete
- AddTaskBottomSheet: text field + save button
- Sealed UiState: Loading, Success, Error
Theme: Material 3, dynamic color. Min SDK: 26. Target SDK: 35.
Dependencies: Hilt, Room, Navigation Compose, Coroutines, kotlinx-datetime.Use this when you need loading, error, and retry handled properly from day one.
📋 Copy & Paste Prompt
Create an Android app using Kotlin, Jetpack Compose, and flat MVVM architecture
(no Clean Architecture layers) that fetches data from a REST API.
Networking:
- Retrofit 2 + OkHttp with logging interceptor
- Sealed class ApiResult<T>: Success, Error (with message), Loading
- Single ApiService with one GET endpoint (placeholder URL is fine)
- Repository maps responses to ApiResult
UI:
- One screen showing a card list
- Loading indicator while fetching
- Error state with a "Retry" button that re-triggers the API call
- Empty state when list is empty
Theme: Material 3, primary #2E7D32 (green). Hilt. Min SDK: 26. Target SDK: 35.Run this in Agent Mode (not New Project) with your project already open.
📋 Copy & Paste Prompt
Add a Gemini API integration to this existing Android project.
Create a new screen called AiAssistantScreen using Jetpack Compose:
- Text input field where the user types a prompt
- "Send" button that calls the Gemini API via generative-ai-android SDK
- Response streams back into a scrollable text area
- Loading indicator while streaming
- Visible error message on failure
ViewModel with StateFlow manages state. Inject GenerativeModel via Hilt.
Add generative-ai-android dependency to libs.versions.toml.Every Android developer has spent an afternoon in dependency hell. The Version Upgrade Assistant is the Panda 2 feature I think is the most underrated in all the coverage I've seen.
To trigger it: Refactor → Update all libraries with AI. Alternatively, hover over a version in libs.versions.toml, open the context actions lightbulb, and choose Update all libraries with Gemini.
The agent runs multiple build rounds automatically — bumping versions, reading errors, adjusting, retrying — until it finds a stable configuration. You review every change before it's applied.
I ran it on a mid-size project with 23 dependencies that hadn't been updated in four months. It resolved everything cleanly in three rounds. Something that would have taken me the better part of an hour took twelve minutes.
⚠️ One caveat: for Android Gradle Plugin (AGP) version bumps specifically, continue using the dedicated AGP Upgrade Assistant. The official docs are clear on this distinction.
The "vibe coding" framing going around is partially true and partially misleading. Yes, you can get a working prototype from a prompt. No, you cannot ship that prototype without understanding and reviewing what was generated. The agent is a capable pair programmer — not a replacement for engineering judgment.
What I've found is that it shifts where my time goes. Less boilerplate, more logic. That's a trade I'll take every single time.
If you're navigating architecture decisions, integrating AI into your mobile app, or just want to talk through what Panda 2 can realistically do for your specific project, I'm happy to chat. Five years of Android and AI development means I've seen most of the edge cases.
Your email address will not be published. Required fields are marked *