Tutorial

Vibe-coding an Android app

Have Antigravity create a playable game with just the prompt "make a fun game".

1) Prepare

Before we begin, you will need to set up your environment.

Pro Tip: To prevent your screen from locking during the tutorial, run the following command.
Terminal
adb shell settings put global stay_on_while_plugged_in 3

Use the prompt below to tell Antigravity how to do use your phone for Android development.

Prompt to Antigravity
There is an Android phone connected via USB. You can install and run an APK by running: adb install your-apk.apk ; adb shell monkey -p your.app.namespace -c android.intent.category.LAUNCHER 1 You can take a screenshot by running: adb shell screencap -p /sdcard/screenshot.png ; adb pull /sdcard/screenshot.png You can record a screencast by running: adb shell screenrecord /sdcard/video.mp4 ; adb pull /sdcard/video.mp4

2) Optional: Launch and screenshot an existing app

For our initial test, we will use a simple existing application. Go to the trusted store F-Droid and select any app such as this prime number checker , then click "Download APK" and save the APK your Antigravity project's folder.

Use the prompt below to instruct Antigravity to install the app and verify it works by taking a screenshot.

Prompt to Antigravity
Install and run the com.bbzone.isitprime_3.apk APK found in your folder, then take a screenshot of it.

That works flawlessly:

IsItPrime App Screenshot

The app launches successfully and the screenshot is retrieved to the local folder.


3) Optional: Create a Basic App

Now let's push the capabilities further. We will ask the AI to code a minimal Android app from scratch, build it, and run it.

Prompt
create a basic/minimalistic Android app that says "Hello", build it with Gradle on command line, run it on the device and take a screenshot.

Model Comparison

While Gemini 2.5 Pro struggled with creating Android apps from scratch (often missing Gradle dependencies or structure), Gemini 3 Pro handles this request with no issues. Antigravity correctly executes the build commands and captures the result.

Hello World App Screenshot

A minimal Android activity displaying 'Hello' on the screen.


4) Make a Fun Game

Finally, let's try something creative. We'll ask for a game and use video recording to verify the gameplay loop.

Prompt
make a fun game involving a rabbit. to verify that your game works as expected, use adb shell screenrecord /sdcard/video.mp4 and analyze the video carefully.

I unfortunately ran out of Gemini quota for today, while it was still iterating.

So I switched to Claude Sonnet 4.5, but it seems to struggle with understanding images (which is crucial to "understand" what is actually happening on the screen). It generated a playable game, but the proportions are off—it likely interprets the grass patch as a background layer rather than a floor element.

Rabbit Game Screenshot

The resulting game: Playable, but visually confused. Can't wait for tomorrow's quota for Gemini to continue iterating on it!