Android development
Make sure you have completed the steps in Setting up Work Environment before preceding
Preperation
You need to setup an emulated or physical device on your Android Studio.
In
capacitor.config.ts
you should update the IP address of the dev server to your computer's IPtsconst devConfig: CapacitorConfig = { ...commonConfig, server: { url: "http://<your ip>:6969", // vite's dev server url cleartext: true, }, };
Starting dev environment
- sh
$ yarn cap sync
Start Vite front-end dev server
sh$ yarn start:renderer
Start android studio on this project
sh$ yarn cap open android
Start Emulator
Building
Follow these steps for building an .apk