@@ -77,15 +77,6 @@ You can install and run the NativeScript CLI on Windows or OS X.
77
77
* [ Android Support Repository] [ Android Support Repository ]
78
78
* (Optional) [ Genymotion] [ Genymotion ]
79
79
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
-
89
80
If you have installed Chocolatey, you can complete these steps to set up JDK, and Android SDK.
90
81
91
82
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
107
98
```
108
99
109
100
For example: ANDROID_HOME=C:\Android\android-sdk
101
+
102
+ > NOTE: This is the directory that contains ` tools ` and ` platform-tools ` directories.
103
+
110
104
1 . To install the Android SDK, run the following command.
111
105
112
106
```Shell
113
107
choco install android-sdk
114
108
```
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
123
109
1 . To update the Android SDK to 22 or later, run the following command.
124
110
125
111
```Shell
@@ -151,18 +137,6 @@ android update sdk --filter tools,platform-tools,android-22,build-tools-22.0.1,s
151
137
* [Android Support Repository][Android Support Repository]
152
138
* (Optional) [Genymotion][Genymotion]
153
139
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
-
166
140
If not present, create the following environment variables.
167
141
168
142
```
@@ -175,7 +149,9 @@ For example: JAVA_HOME=/usr/bin/java
175
149
ANDROID_HOME=Path to Android installation directory
176
150
```
177
151
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.
179
155
180
156
You can install the required Android tools with the following command:
181
157
@@ -209,18 +185,6 @@ echo yes | android update sdk --filter tools,platform-tools,android-22,build-too
209
185
* [ Android Support Repository] [ Android Support Repository ]
210
186
* (Optional) [ Genymotion] [ Genymotion ]
211
187
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
-
224
188
If not present, create the following environment variables.
225
189
226
190
```
@@ -235,6 +199,8 @@ ANDROID_HOME=Path to Android installation directory
235
199
236
200
For example: ANDROID_HOME=/home/user/android-sdk
237
201
202
+ > NOTE: This is the directory that contains ` tools ` and ` platform-tools ` directories.
203
+
238
204
You can install required Android Tools with the following command.
239
205
240
206
``` Shell
0 commit comments