Android
summary
Before you can develop for Android you’re first going to need the general system setup for desktop development.
Set up Desktop development now!
I know what you’re thinking, “why the heck do I need to install an IDE to build for Android??” And while I might point you to both Mac and iOS that both depend on Xcode, the real reason option 1 and the recommended approach is getting Android Studio is because it’s a more standardised approach and debugging your Android project regardless of what other IDE you’re using is simply going to be easier using the dedicated IDE straight from Google.
- Install Android Studio
- Add the following to
~/.zshrc
:
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"export ANDROID_HOME="$HOME/Library/Android/sdk"export NDK_HOME="$ANDROID_HOME/ndk/25.0.8775105"
- Add the Android targets using rustup:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
WIP
WIP
adb devices
WIP
adb devices
# Create a basic app by spamming enterpnpm create tauri-app --beta# Install dependenciescd tauri-apppnpm install# Initialize the Android projectpnpm tauri android init# Run the apppnpm tauri android dev