Skip to content

Commit 629b453

Browse files
Update System Requirements for Android development
Update System Requirements for Android development according to 1.5.x changes.
1 parent 86853a1 commit 629b453

File tree

1 file changed

+8
-42
lines changed

1 file changed

+8
-42
lines changed

README.md

+8-42
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ You can install and run the NativeScript CLI on Windows or OS X.
7777
* [Android Support Repository][Android Support Repository]
7878
* (Optional) [Genymotion][Genymotion]
7979

80-
If you want to develop for Android, verify that you have added the following paths in the `PATH` system environment variable.
81-
82-
```
83-
Path to tools directory in the Android SDK installation folder
84-
Path to platform-tools directory in the Android SDK installation folder
85-
```
86-
87-
For example: PATH=...;...;C:\Users\MyUser\AppData\Local\Android\android-sdk\tools;C:\Users\MyUser\AppData\Local\Android\android-sdk\platform-tools;
88-
8980
If you have installed Chocolatey, you can complete these steps to set up JDK, and Android SDK.
9081

9182
1. Run a Windows command prompt.
@@ -107,19 +98,14 @@ If you have installed Chocolatey, you can complete these steps to set up JDK, an
10798
```
10899

109100
For example: ANDROID_HOME=C:\Android\android-sdk
101+
102+
> NOTE: This is the directory that contains `tools` and `platform-tools` directories.
103+
110104
1. To install the Android SDK, run the following command.
111105

112106
```Shell
113107
choco install android-sdk
114108
```
115-
1. If not present, add the following file path to the `PATH` system environment variable.
116-
117-
```
118-
Path to tools directory in the Android SDK installation folder
119-
Path to platform-tools directory in the Android SDK installation folder
120-
```
121-
122-
For example: PATH=...;...;C:\Users\MyUser\AppData\Local\Android\android-sdk\tools;C:\Users\MyUser\AppData\Local\Android\android-sdk\platform-tools
123109
1. To update the Android SDK to 22 or later, run the following command.
124110

125111
```Shell
@@ -151,18 +137,6 @@ android update sdk --filter tools,platform-tools,android-22,build-tools-22.0.1,s
151137
* [Android Support Repository][Android Support Repository]
152138
* (Optional) [Genymotion][Genymotion]
153139

154-
If you want to develop for Android, verify that you have added the following paths in your `PATH` in `~/.bash_profile`.
155-
156-
```
157-
Path to the tools subdirectory in the Android SDK installation directory
158-
Path to the platform-tools subdirectory in the Android SDK installation directory
159-
```
160-
161-
For example:
162-
```
163-
export PATH=${PATH}:/Applications/Android\ Studio.app/sdk/tools:/Applications/Android\ Studio.app/sdk/platform-tools
164-
```
165-
166140
If not present, create the following environment variables.
167141

168142
```
@@ -175,7 +149,9 @@ For example: JAVA_HOME=/usr/bin/java
175149
ANDROID_HOME=Path to Android installation directory
176150
```
177151

178-
For example: ANDROID_HOME=/Applications/Android\ Studio.app/sdk/
152+
For example: ANDROID_HOME=/usr/local/Cellar/android-sdk/24/
153+
154+
> NOTE: This is the directory that contains `tools` and `platform-tools` directories.
179155
180156
You can install the required Android tools with the following command:
181157

@@ -209,18 +185,6 @@ echo yes | android update sdk --filter tools,platform-tools,android-22,build-too
209185
* [Android Support Repository][Android Support Repository]
210186
* (Optional) [Genymotion][Genymotion]
211187

212-
Verify that you have added the following paths in your `PATH`.
213-
214-
```
215-
Path to the tools subdirectory in the Android SDK installation directory
216-
Path to the platform-tools subdirectory in the Android SDK installation directory
217-
```
218-
219-
For example:
220-
```
221-
export PATH=${PATH}:/home/user/android-sdk/tools:/home/user/android-sdk/platform-tools
222-
```
223-
224188
If not present, create the following environment variables.
225189

226190
```
@@ -235,6 +199,8 @@ ANDROID_HOME=Path to Android installation directory
235199

236200
For example: ANDROID_HOME=/home/user/android-sdk
237201

202+
> NOTE: This is the directory that contains `tools` and `platform-tools` directories.
203+
238204
You can install required Android Tools with the following command.
239205

240206
```Shell

0 commit comments

Comments
 (0)