Skip to content

Commit d8204e9

Browse files
Update ns-setup-linux.md
1. On page https://developer.android.com/studio, the title of the section for SDK only installation, has been changed to "Command line tools only" 2. The "tools" folder now need to be inside a new folder "cmdline-tools", according to this stackoverflow article: https://stackoverflow.com/questions/60440509/android-command-line-tools-sdkmanager-always-shows-warning-could-not-create-se Applying this change makes the installation work for me. Please kindly verify the above, many thanks!
1 parent 5516b35 commit d8204e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/start/ns-setup-linux.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ Complete the following steps to set up NativeScript on your Linux development ma
6868
You may need to reload the `bashrc`file either by logging out and in again, or by running `source .bashrc` in the terminal from your Home directory.
6969

7070
5. Install the [Android SDK](http://developer.android.com/sdk/index.html).
71-
1. Go to [Android Studio and SDK Downloads](https://developer.android.com/sdk/index.html#Other) and in the **SDK Tools Only** section download the package for Linux at the bottom of the page.
72-
2. After the download completes, unpack the downloaded archive into a folder, such as `/usr/local/android/sdk`
73-
* The archive you just extracted was the `tools` folder, so in this case it would be at: `/usr/local/android/sdk/tools`
71+
1. Go to [Android Studio and SDK Downloads](https://developer.android.com/sdk/index.html#Other) and in the **Command line tools only** section download the package for Linux at the bottom of the page.
72+
2. After the download completes, unpack the downloaded archive into a folder, such as `/usr/local/android/sdk/cmdline-tools`
73+
* The archive you just extracted was the `tools` folder, so in this case it would be at: `/usr/local/android/sdk/cmdline-tools/tools`
7474
3. Set the ANDROID_HOME environment variable. Open `~/.bashrc` and add the following:
7575
<pre><code class="language-terminal">export ANDROID_HOME="/usr/local/android/sdk/"
76-
export PATH="${PATH}:${ANDROID_HOME}tools/:${ANDROID_HOME}platform-tools/"</code></pre>
76+
export PATH="${PATH}:${ANDROID_HOME}cmdline-tools/tools/:${ANDROID_HOME}platform-tools/"</code></pre>
7777
4. In a text file which was opened, paste in the path to your variable (at the new line).
7878

7979
For example: `ANDROID_HOME=/usr/local/android/sdk`
@@ -82,7 +82,7 @@ Complete the following steps to set up NativeScript on your Linux development ma
8282

8383
6. Install all packages for the Android SDK Platform 28, Android SDK Build-Tools 28.0.3 or later, Android Support Repository, Google Repository and any other SDKs that you may need. You can alternatively use the following command, which will install all required packages. In order to install SDK's go to Android Studio -> Settings -> System Settings -> Android SDK -> Mark all the Android versions you would like to support within your project (The API Level column indicates the SDK Platform).
8484

85-
<pre class="add-copy-button"><code class="language-terminal">sudo $ANDROID_HOME/tools/bin/sdkmanager "tools" "emulator" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "extras;android;m2repository" "extras;google;m2repository"
85+
<pre class="add-copy-button"><code class="language-terminal">sudo $ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager "tools" "emulator" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "extras;android;m2repository" "extras;google;m2repository"
8686
</code></pre>
8787

8888
7. Setup Android Emulators (AVD) by following the article [here]({%slug android-emulators%})

0 commit comments

Comments
 (0)