Skip to content
On this page

Android development

Make sure you have completed the steps in Setting up Work Environment before preceding

Preperation

  1. You need to setup an emulated or physical device on your Android Studio.

  2. In capacitor.config.ts you should update the IP address of the dev server to your computer's IP

    ts
    const devConfig: CapacitorConfig = {
      ...commonConfig,
      server: {
        url: "http://<your ip>:6969", // vite's dev server url
        cleartext: true,
      },
    };

Starting dev environment

  1. Sync capacitor's config

    sh
    $ yarn cap sync
  2. Start Vite front-end dev server

    sh
    $ yarn start:renderer
  3. Start android studio on this project

    sh
    $ yarn cap open android
  4. Start Emulator

Building

Follow these steps for building an .apk

Made with the loss of multiple braincells 🧠