Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 985 Bytes

BuildAndroid.md

File metadata and controls

39 lines (33 loc) · 985 Bytes

Running debug build with metro bundling on emulator

yarn android

Building android APK

Run the command below, the apk should appear in ./app/build/outputs/apk

cd android
./gradlew assembleRelease

Building android AAB

Run the command below, the apk should appear in ./app/build/outputs/bundle

cd android
./gradlew bundleRelease

Clean android build folder

cd android
./gradlew clean

Upgrading the gradle version

Gradle is used to build the android bundle. The gradle wrapper(gradlew) is used to wrap gradle execution with a specific gradle version To upgrade the version of gradle used to build the android app: use the wrapper task:

cd android
./gradlew wrapper --gradle-version 7.2

To upgrade the gradle wrapper itself, run the above command again

./gradlew wrapper --gradle-version 7.2

see official gradle docs