From e3b6968927002ca6023bcd3ebf7b72837676fa26 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 8 Oct 2019 18:23:37 -0400 Subject: [PATCH] add NDK to standalone SDK instructions --- static/build.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/static/build.html b/static/build.html index b0fce652..65ca9ab9 100644 --- a/static/build.html +++ b/static/build.html @@ -712,23 +712,28 @@ wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip unzip sdk-tools-linux-4333796.zip rm sdk-tools-linux-4333796.zip +

Add the directories to your PATH in your shell profile configuration and do the + same in your current shell:

+ +
export PATH="$HOME/sdk/tools:$HOME/sdk/tools/bin:$HOME/sdk/platform-tools:$HOME/sdk/build-tools/29.0.2:$PATH:$HOME/sdk/ndk-bundle"
+export ANDROID_HOME="$HOME/sdk"
+

Run an initial update, which will also install platform-tools

-
tools/bin/sdkmanager --update
+
sdkmanager --update

Install platform-tools for tools like adb and fastboot:

-
tools/bin/sdkmanager platform-tools
+
sdkmanager platform-tools

For running the Compatibility Test Suite you'll also need the build-tools for aapt:

-
tools/bin/sdkmanager 'build-tools;29.0.2'
+
sdkmanager 'build-tools;29.0.2'
-

Add the directories to your PATH in your shell profile configuration:

+

For working with native code, you need the NDK:

-
export PATH="$HOME/sdk/tools:$HOME/sdk/tools/bin:$HOME/sdk/platform-tools:$HOME/sdk/build-tools/29.0.2:$PATH:$HOME/sdk/ndk-bundle"
-export ANDROID_HOME="$HOME/sdk"
+
sdkmanager ndk-bundle

You should update the sdk before use from this point onwards: