diff --git a/docs/platforms/android/android_building.md b/docs/platforms/android/android_building.md index 4c59f60bfb0a09..4677396a063750 100644 --- a/docs/platforms/android/android_building.md +++ b/docs/platforms/android/android_building.md @@ -15,17 +15,18 @@ There are following Apps on Android
-- [Building Android](#building-android) - - [Source files](#source-files) - - [Requirements for building](#requirements-for-building) - - [Linux](#linux) - - [MacOS](#macos) - - [ABIs and TARGET_CPU](#abis-and-target_cpu) - - [Gradle \& JDK Version](#gradle--jdk-version) - - [Preparing for build](#preparing-for-build) - - [Building Android CHIPTool from scripts](#building-android-chiptool-from-scripts) - - [Building Android CHIPTool from Android Studio](#building-android-chiptool-from-android-studio) - - [Building Android CHIPTest from scripts](#building-android-chiptest-from-scripts) +- [Building Android](#building-android) + - [Source files](#source-files) + - [Requirements for building](#requirements-for-building) + - [Linux](#linux) + - [MacOS](#macos) + - [ABIs and TARGET\_CPU](#abis-and-target_cpu) + - [Gradle \& JDK Version](#gradle--jdk-version) + - [Kotlin Version](#kotlin-version) + - [Preparing for build](#preparing-for-build) + - [Building Android CHIPTool from scripts](#building-android-chiptool-from-scripts) + - [Building Android CHIPTool from Android Studio](#building-android-chiptool-from-android-studio) + - [Building Android CHIPTest from scripts](#building-android-chiptest-from-scripts)
@@ -45,7 +46,7 @@ directory. You need Android SDK 26 & NDK 23.2.8568313 downloaded to your machine. Set the `$ANDROID_HOME` environment variable to where the SDK is downloaded and the `$ANDROID_NDK_HOME` environment variable to point to where the NDK package is -downloaded. The build also requires `kotlinc` to be in your `$PATH`. +downloaded. 1. Install [Android Studio](https://developer.android.com/studio) 2. Install NDK: @@ -121,6 +122,20 @@ should be configured as follows: export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 ``` + + +### Kotlin Version +The build requires `kotlinc` to be in your `$PATH`. +For Linux: +``` +cd /usr/lib +wget -q https://github.com/JetBrains/kotlin/releases/download/v1.8.10/kotlin-compiler-1.8.10.zip +unzip kotlin-compiler-*.zip +rm kotlin-compiler-*.zip +rm -f kotlinc/bin/*.bat +export PATH=$PATH:/usr/lib/kotlinc/bin +``` +