Vibe code to app stores

Android on Windows

14 min read

A step-by-step guide for shipping a vibe-coded web app to Google Play from a Windows machine — covering tool installation, Capacitor setup, signing, and the full Play Store submission process.

If you're using Lunadeck, the build and signing steps (Parts 4–6) are handled for you automatically. This guide is for building and publishing locally, or for understanding what Lunadeck does under the hood.

What you'll need before starting:

  • A Windows 10 or Windows 11 computer (64-bit)
  • At least 12 GB of free disk space
  • At least 8 GB of RAM (16 GB recommended — the Android emulator is a memory hog)
  • A credit/debit card ($25 one-time Google Play fee)
  • Your exported web app project (ZIP from Bolt.new, Lovable, etc.)
  • About 2–4 hours for initial setup, then ~3 weeks for the publishing process

Part 1: Install the Required Tools

You need four things: Node.js, Java (JDK), Android Studio, and Capacitor (installed in Part 3).

1.1 Install Node.js (v22+)

Capacitor 8 requires Node.js 22 or newer. The easiest way to manage Node.js versions on Windows is with nvm-windows — a separate project from the Linux/Mac nvm, same concept, different tool.

Option A: Using nvm-windows (recommended)

  1. If you already have Node.js installed, uninstall it first via Settings > Apps. nvm-windows can conflict with existing installations because it manages Node.js through symlinks, and an existing install creates PATH conflicts.
  2. Go to the nvm-windows releases page and download nvm-setup.exe from the latest release.
  3. Run the installer. Accept the default installation directory, or choose your own — just avoid paths with spaces. The installer will also ask where to create the Node.js symlink; the default is fine.
  4. Close and reopen your terminal after installation.

Then install Node.js 22:

# Open PowerShell or Command Prompt as Administrator
# (nvm-windows requires admin rights to create symlinks)
 
nvm install 22
nvm use 22
 
# Verify
node --version   # Should show v22.x.x
npm --version

Important: Run nvm install and nvm use from an Administrator terminal. Right-click PowerShell or Command Prompt and select "Run as administrator."

Option B: Direct installer from nodejs.org

Go to https://nodejs.org and download the Windows installer (.msi) for Node.js 22.x. Run it and accept all defaults. Simpler, but makes it harder to switch Node versions later.

node --version

1.2 Install Java (JDK 17)

Android Studio bundles its own JDK, but having one system-wide avoids surprises — particularly keytool not being found when you need to sign your app.

  1. Go to https://adoptium.net/ (Eclipse Temurin) and download the JDK 17 Windows .msi installer.
  2. Run the installer. When prompted about custom setup, make sure "Set JAVA_HOME variable" is checked — this saves you from configuring it manually.
  3. Accept the defaults and finish.

Verify in a new terminal window:

java -version

If java is not recognized after installation, set JAVA_HOME manually:

  1. Press Win + S, search for "Environment Variables", and click "Edit the system environment variables"
  2. Click "Environment Variables" at the bottom
  3. Under System variables, click New:
    • Variable name: JAVA_HOME
    • Variable value: C:\Program Files\Eclipse Adoptium\jdk-17.x.x-hotspot (adjust to your actual path)
  4. Find the Path variable, click Edit, and add a new entry: %JAVA_HOME%\bin
  5. Click OK on everything and restart your terminal

1.3 Install Android Studio

Step 1: Download and install

Go to https://developer.android.com/studio and download the Windows .exe installer. Run it:

  1. Accept the license agreement
  2. Keep both "Android Studio" and "Android Virtual Device" checked
  3. Accept the default installation directory or choose your own
  4. Click Install and wait

Step 2: First-time setup wizard

When Android Studio launches for the first time:

  1. Choose "Do not import settings"
  2. Select "Standard" installation type
  3. Choose your UI theme
  4. Let it download the Android SDK, build tools, and emulator

Step 3: Install SDK components

Go to Tools > SDK Manager:

  • SDK Platforms tab: check Android 14 (API 34) or newer
  • SDK Tools tab: check Android SDK Build-Tools, Android SDK Command-line Tools, Android Emulator, Android SDK Platform-Tools

Click Apply and let it download.

Step 4: Set environment variables

By default, Android Studio installs the SDK to:

C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk

The AppData folder is hidden by default. To see it in File Explorer, click View > Show > Hidden items (Windows 11) or View > Hidden items (Windows 10).

  1. Press Win + S, search for "Environment Variables", and click "Edit the system environment variables"
  2. Click "Environment Variables"
  3. Under System variables, click New and add:
    • ANDROID_HOME = C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk
    • ANDROID_SDK_ROOT = C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk
  4. Find Path under System variables, click Edit, and add:
    • %ANDROID_HOME%\platform-tools
    • %ANDROID_HOME%\tools
    • %ANDROID_HOME%\tools\bin
    • %ANDROID_HOME%\cmdline-tools\latest\bin
  5. Click OK on everything

Restart your terminal and verify:

adb --version

Part 2: Export and Prepare Your Web App

2.1 Export from your vibe coding tool

In Bolt.new: click the project title > Export > Download. Other tools have similar export options. Unzip the downloaded file:

mkdir C:\Users\YOUR_USERNAME\my-app
cd C:\Users\YOUR_USERNAME\my-app
 
# Windows 10 1803+ has tar built in:
tar -xf %USERPROFILE%\Downloads\your-project.zip -C .

Or right-click the .zip in File Explorer and select "Extract All...".

2.2 Identify your build output directory

Capacitor needs to know where your built app ends up:

FrameworkBuild commandOutput folder
Vite (React/Vue/Svelte)npm run builddist
Create React Appnpm run buildbuild
Angularng builddist\your-app
Next.js (static export)next buildout

2.3 Make sure your app builds

cd C:\Users\YOUR_USERNAME\my-app
npm install
npm run build

Common issues with vibe-coded exports:

  • Missing .env variables — create a .env file with the needed API keys
  • Dependency conflicts — delete node_modules and package-lock.json, then re-run npm install
  • TypeScript errors — fix the specific file and line the error points to

Note: If your app has a backend (API routes, database), Capacitor wraps the frontend only. Your backend still needs to be hosted separately (Supabase, Railway, etc.) and your app must point to that hosted URL.


Part 3: Add Capacitor to Your Project

3.1 Install Capacitor

cd C:\Users\YOUR_USERNAME\my-app
npm install @capacitor/core @capacitor/cli

3.2 Initialize Capacitor

npx cap init

You'll be prompted for:

  • App name — the name users see under the icon
  • App Package ID — a unique reverse-domain identifier like com.yourname.myapp. Permanent — cannot be changed after publishing.
  • Web asset directory — the build output folder from Part 2 (usually dist or build)

Verify the generated capacitor.config.ts:

import type { CapacitorConfig } from '@capacitor/cli';
 
const config: CapacitorConfig = {
  appId: 'com.yourname.myapp',
  appName: 'My App',
  webDir: 'dist'   // Must match your actual build output folder
};
 
export default config;

Critical: webDir must point to the folder containing your built index.html. A wrong value produces a blank screen.

3.3 Add the Android platform

npm install @capacitor/android
npm run build
npx cap add android

This creates an android\ folder — a complete Android Studio project.

3.4 Sync web code to the Android project

Run this every time you change your web code:

npm run build
npx cap sync

Part 4: Test Your App

4.1 Open in Android Studio

npx cap open android

The first open downloads Gradle dependencies — this takes several minutes. Do not upgrade Gradle if prompted.

4.2 Run on an emulator

In Android Studio:

  1. Open Device Manager (phone icon with wrench)
  2. Click Create Virtual Device, pick a Pixel device, and download a system image (API 34+)
  3. Select the emulator from the device dropdown and click Run (▶)

Emulator performance on Windows: The Android emulator uses hardware acceleration via Intel HAXM or Windows Hypervisor Platform (WHPX). If it's extremely slow, make sure hardware virtualization is enabled in your BIOS/UEFI (usually "Intel VT-x" or "AMD-V"). You can also enable Windows Hypervisor Platform in Windows Features (Settings > Apps > Optional features > More Windows features).

4.3 Run on a physical device

  1. Enable Developer Options: Settings > About Phone > tap "Build Number" 7 times
  2. Enable USB Debugging: Settings > Developer Options > USB Debugging
  3. Connect via USB and accept the debugging prompt
  4. Select your device in Android Studio and click Run

4.4 Common issues

Blank white screenwebDir is wrong or you forgot npm run build before npx cap sync.

App crashes immediately — check Logcat (View > Tool Windows > Logcat) for errors.

API calls failinglocalhost in the emulator refers to the emulator itself. Use 10.0.2.2 to reach your development machine's localhost, or use your deployed backend URL.


Part 5: Prepare for Release

5.1 Set your app icon and splash screen

npm install @capacitor/assets --save-dev

Create an assets\ folder at the project root and add:

  • icon-only.png — at least 1024×1024 px, square, no transparency
  • icon-foreground.png — foreground layer for adaptive icons (1024×1024 px)
  • icon-background.png — background layer for adaptive icons (1024×1024 px)
  • splash.png — at least 2732×2732 px
  • splash-dark.png — dark mode splash (same size)

Generate all Android icon and splash variants:

npx capacitor-assets generate

5.2 Update your app version

In android\app\build.gradle:

versionCode 1       // Integer, must increase with every Play Store upload
versionName "1.0"   // Human-readable string shown to users

5.3 Configure app permissions

In android\app\src\main\AndroidManifest.xml, inside the <manifest> tag:

<!-- Internet access (included by default in Capacitor, but verify) -->
<uses-permission android:name="android.permission.INTERNET" />
 
<!-- Add only what your app actually uses: -->
<!-- <uses-permission android:name="android.permission.CAMERA" /> -->
<!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> -->
<!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->

Part 6: Sign and Build the Release Bundle

6.1 Generate a signing key

Open Command Prompt or PowerShell and run:

keytool -genkey -v -keystore %USERPROFILE%\my-app-release.keystore -alias my-app-key -keyalg RSA -keysize 2048 -validity 10000

If keytool is not recognized: Java's bin directory isn't in your PATH. Fix your JAVA_HOME and PATH (see Part 1.2), or use the full path to keytool.exe. In PowerShell, prefix it with &:

& "C:\Program Files\Eclipse Adoptium\jdk-17.0.13+11-hotspot\bin\keytool.exe" -genkey -v -keystore %USERPROFILE%\my-app-release.keystore -alias my-app-key -keyalg RSA -keysize 2048 -validity 10000

Back up this keystore file and both passwords. Losing it means you can never update your app on Google Play. Store a copy in a password manager and on external storage.

6.2 Configure Gradle signing

Create android\keystore.properties (do NOT commit this to git — add it to .gitignore):

storeFile=C:\\Users\\YOUR_USERNAME\\my-app-release.keystore
storePassword=your_keystore_password
keyAlias=my-app-key
keyPassword=your_key_password

Windows path note: Use double backslashes (\\) or forward slashes (/). A single backslash is an escape character in .properties files.

Edit android\app\build.gradle — add above the android { block:

def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

Inside the android { block, add signing config and update build types:

android {
    // ... existing config ...
 
    signingConfigs {
        release {
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
        }
    }
 
    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

6.3 Build the release bundle

cd C:\Users\YOUR_USERNAME\my-app
npm run build
npx cap sync
 
cd android
.\gradlew.bat bundleRelease

Windows difference: On Linux/macOS the command is ./gradlew bundleRelease. On Windows it's .\gradlew.bat bundleRelease. In Command Prompt (no .\ needed): gradlew bundleRelease.

Your signed .aab file will be at:

android\app\build\outputs\bundle\release\app-release.aab

If the build fails — read the error output carefully. Common causes: missing SDK components (fix in SDK Manager), Gradle version mismatch (don't upgrade when prompted), Java version issues (confirm JDK 17 is installed and JAVA_HOME points to it).


Part 7: Create a Google Play Developer Account

  1. Go to https://play.google.com/console
  2. Sign in with your Google account
  3. Choose Personal or Organization account (Personal is fine for indie developers)
  4. Pay the one-time $25 USD registration fee
  5. Complete identity verification
  6. Wait 24–48 hours for activation

Personal accounts created after November 2023 require a device verification step. Install the Google Play Console mobile app on an Android device, sign in with the same Google account, and follow the verification steps.


Part 8: The Closed Testing Requirement

New personal developer accounts cannot publish directly to production. Google requires:

  1. Uploading your app to a closed test track
  2. Having at least 12 testers opted in
  3. Those testers must remain opted in for 14 consecutive days
  4. Only then can you apply for production access

8.1 Create your app listing

In Google Play Console, click Create app and work through all required sections:

  • Store listing — app description, at least 2 phone screenshots, 1024×500 feature graphic, 512×512 icon, category, contact details
  • Content rating — complete the IARC questionnaire honestly
  • Target audience — if not specifically for children, do not select children as target
  • Privacy policy — required if your app collects any user data; a simple page on GitHub Pages or Notion works

8.2 Set up closed testing and upload your build

  1. Go to Testing > Closed testing in the left sidebar
  2. Under Testers, create a list with at least 12 Gmail addresses
  3. Click Create new release, accept Play App Signing, and upload your .aab file
  4. Add release notes and click Start rollout
  5. Share the generated opt-in link with your testers

Testers must click the link on an Android device, accept the invitation, and install the app. After 14 days with all testers opted in, you can apply for production access from the app Dashboard.


Part 9: Publish to Production

Once you have production access:

  1. Go to Production > Create new release
  2. Upload your .aab file
  3. Add release notes and select distribution countries
  4. Click Start rollout to production

First-submission review typically takes a few hours to several days. If approved, your app goes live.


Part 10: Updating Your App

# 1. Make your code changes
# 2. Rebuild
npm run build
npx cap sync
 
# 3. Bump versionCode in android\app\build.gradle (must be higher than last upload)
 
# 4. Build the new bundle
cd android
.\gradlew.bat bundleRelease
 
# 5. Upload the new .aab in Google Play Console
#    Production > Create new release > upload > rollout

Quick Reference

# === ONE-TIME SETUP ===
npm install @capacitor/core @capacitor/cli
npx cap init
npm install @capacitor/android
npx cap add android
 
# === EVERY CODE CHANGE ===
npm run build
npx cap sync
 
# === TESTING ===
npx cap open android
npx cap run android
 
# === RELEASE BUILD ===
cd android
.\gradlew.bat bundleRelease
# Output: android\app\build\outputs\bundle\release\app-release.aab

Troubleshooting

"SDK location not found"ANDROID_HOME is not set. Follow Part 1.3 Step 4 and restart your terminal. You can also create android\local.properties with:

sdk.dir=C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Android\\Sdk

"JAVA_HOME is not set" or "java is not recognized" — Add JAVA_HOME as a system environment variable pointing to your JDK (e.g., C:\Program Files\Eclipse Adoptium\jdk-17.0.13+11-hotspot) and add %JAVA_HOME%\bin to Path.

Gradle fails with "Could not determine java version" — Multiple Java versions installed. Make sure JAVA_HOME points specifically to JDK 17.

"capacitor.config.ts: webDir does not exist" — Run npm run build first.

App shows blank screen — Verify webDir matches the actual build output folder and that index.html is inside it.

"INSTALL_FAILED_UPDATE_INCOMPATIBLE" — Uninstall the old version from your device before running again.

gradlew.bat not recognized or permission denied — Make sure you're in the android\ directory. In PowerShell, use .\gradlew.bat. In Command Prompt, just gradlew bundleRelease.

keytool not recognized — Java's bin folder is not in your PATH. Fix your PATH or use the full path to keytool.exe as shown in Part 6.1.

Long path errors — Android projects can exceed Windows' default 260-character path limit. Enable long paths in PowerShell (as Admin):

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

Then restart your computer.

Emulator is extremely slow — Enable hardware virtualization in BIOS/UEFI (Intel VT-x or AMD-V), then enable Windows Hypervisor Platform in Windows Features.


Realistic Expectations

The timeline is longer than you expect. Between the 14-day testing requirement, Google's review process, and debugging, plan for 3–4 weeks from start to live.

Capacitor wraps, it doesn't transform. Your app behaves exactly like it does in a mobile browser. Test in Chrome's mobile emulation mode and fix layout issues before wrapping.

Performance won't match a true native app. Animations may be janky on older phones, background tasks are limited, and push notifications require extra setup.

Google can reject your app. Common reasons: missing privacy policy, misleading store listing, or the app being deemed too simple. Read Google's developer policies before submitting.

Finding 12 testers is harder than it sounds. Start recruiting before you finish building. Developer communities on Discord and Reddit (r/androiddev, r/betatesting) organize tester exchanges.