CMD.Protons Guide to
Vibe coding with Google AI Studio
AI Studio creates Universal Code but only offers Web-Based Previews. Here is exactly how the “Build Mode” limitations work:
The “Build” panel (Vibe Coding) is essentially a web container.
If you build a Web App: It writes the code and renders it instantly because your browser (Chrome) is the runtime environment.
If you build an Android App: It will write perfectly valid Android code, but the preview window will likely just show you the raw code or a text explanation. It cannot launch a virtual Android phone inside that specific tab to show you the app working.
- It Can “Build” Anything (Code-Wise)
You can absolutely use AI Studio to build non-web projects; you just lose the “instant preview” magic:
Mobile Apps: It can write the full MainActivity.kt for an Android app. You just have to copy-paste it into Android Studio yourself to run it.
Python Scripts: It can write complex Python automation scripts. (Note: It can actually run some Python code for math/data analysis using a feature called “Code Execution,” but it won’t build a graphical interface for it).
Arduino/Hardware: It can write C++ code for a microcontroller, but you obviously can’t test it without the hardware.
- The “Secret” Tool for Mobile Previews
If you want what you are describing—a browser-based tool that can actually run and preview Android apps without installing anything—you are looking for a different Google tool called Project IDX (recently integrating into Firebase Studio).
What it is: It looks like VS Code in a browser.
What it does: It has cloud-based emulators. You can ask Gemini to build an Android app, and it will spin up a virtual Android phone inside your web browser so you can click buttons and test it live.