From d7e42983a90e6ed1ce12000830767cfafc7337c1 Mon Sep 17 00:00:00 2001 From: robotchaoX Date: Fri, 9 Jun 2023 13:22:48 +0800 Subject: [PATCH] Modify BUILD.md for building on Android --- BUILD.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BUILD.md b/BUILD.md index 6be82957..173874ae 100644 --- a/BUILD.md +++ b/BUILD.md @@ -23,21 +23,21 @@ Use the provided CMakeLists.txt with [CMake](https://cmake.org) to generate a bu Building on Android is done using the [Gradle Build Tool](https://gradle.org/): -Set Android SDK/NDK by environment variable `ANDROID_SDK_ROOT`/`ANDROID_NDK_HOME`. +If you want to build it through command line, set Android SDK/NDK by environment variable `ANDROID_SDK_ROOT`/`ANDROID_NDK_HOME`. + +On Linux execute: ``` -export ANDROID_SDK_ROOT= -export ANDROID_NDK_HOME= cd android ./gradlew assembleDebug ``` -This will download gradle locally, build all samples and output the apks to ```android\examples\bin```. +This will download gradle locally, build all samples and output the apks to ```android/examples/bin```. -On Windows execute `gradlew.bat assembleDebug`. +On Windows execute ```gradlew.bat assembleDebug```. If you want to build and install on a connected device or emulator image, run ```gradle installDebug``` instead. -If you want to build it through [Android Studio](https://developer.android.com/studio), open project ```android\build.gradle``` in Android Studio. +If you want to build it through [Android Studio](https://developer.android.com/studio), open project folder ```android``` in Android Studio. ## [iOS and macOS](xcode/)