You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-27Lines changed: 8 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,10 +69,9 @@ You can install and run the NativeScript CLI on Windows or OS X.
69
69
> On Windows systems, you can develop, build, and deploy NativeScript projects that target Android.
70
70
71
71
* Windows Vista or later
72
-
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/) or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/) stable official release
72
+
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/), [0.12.x](https://nodejs.org/dist/latest-v0.12.x/) or [4.2.x](https://nodejs.org/dist/latest-v4.x/) stable official release
73
73
* (Optional) [Chocolatey][Chocolatey]
74
74
*[JDK 8][JDK 8] or a later stable official release
75
-
*[Gradle 2.3][Gradle 2.3] or a later stable official release
76
75
*[Android SDK 22][Android SDK 22] or a later stable official release
77
76
*[Android SDK Build-tools 22.0.0][Android SDK Build-tools 22.0.0] or a later stable official release
78
77
*[Android Support Repository][Android Support Repository]
@@ -81,14 +80,13 @@ You can install and run the NativeScript CLI on Windows or OS X.
81
80
If you want to develop for Android, verify that you have added the following paths in the `PATH` system environment variable.
82
81
83
82
```
84
-
Path to the bin directory in the Gradle installation folder
85
83
Path to tools directory in the Android SDK installation folder
86
84
Path to platform-tools directory in the Android SDK installation folder
87
85
```
88
86
89
-
For example: PATH=...;...;C:\tools\gradle\bin;C:\Users\MyUser\AppData\Local\Android\android-sdk\tools;C:\Users\MyUser\AppData\Local\Android\android-sdk\platform-tools;
87
+
For example: PATH=...;...;C:\Users\MyUser\AppData\Local\Android\android-sdk\tools;C:\Users\MyUser\AppData\Local\Android\android-sdk\platform-tools;
90
88
91
-
If you have installed Chocolatey, you can complete these steps to set up JDK, Gradle, and Android SDK.
89
+
If you have installed Chocolatey, you can complete these steps to set up JDK, and Android SDK.
92
90
93
91
1. Run a Windows command prompt.
94
92
1. To install JDK, run the following command.
@@ -102,25 +100,13 @@ If you have installed Chocolatey, you can complete these steps to set up JDK, Gr
102
100
JAVA_HOME=Path to the jdk* install folder
103
101
```
104
102
105
-
For example: JAVA_HOME=C:\Program Files\Java\jdk1.8.0_11
103
+
For example: JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66
106
104
107
105
```
108
106
ANDROID_HOME=Path to Android installation directory
109
107
```
110
108
111
109
For example: ANDROID_HOME=C:\Android\android-sdk
112
-
1. To install Gradle, run the following command.
113
-
114
-
```Shell
115
-
choco install gradle
116
-
```
117
-
1. If not present, add the following file path to the `PATH` system environment variable.
118
-
119
-
```
120
-
Path to the bin directory in the Gradle installation folder
121
-
```
122
-
123
-
For example: PATH=...;...;C:\tools\gradle\bin
124
110
1. To install the Android SDK, run the following command.
> On OS X systems, you can develop, build, and deploy NativeScript projects that target iOS and Android.
154
140
155
141
* OS X Mavericks
156
-
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/) or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/) stable official release
142
+
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/) or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/), or [4.2.x](https://nodejs.org/dist/latest-v4.x/) stable official release
157
143
* For iOS development
158
144
* [Latest Xcode][12]
159
145
* [Xcode command-line tools][12]
160
146
* (Optional) [CocoaPods 0.38.2][CocoaPods 0.38.2]
161
147
* For Android development
162
148
* [JDK 8][JDK 8] or a later stable official release
163
-
* [Gradle 2.3][Gradle 2.3] or a later stable official release
164
149
* [Android SDK 22][Android SDK 22] or a later stable official release
165
150
* [Android SDK Build-tools 22.0.0][Android SDK Build-tools 22.0.0] or a later stable official release
166
151
* [Android Support Repository][Android Support Repository]
> On Linux systems, you can develop, build, and deploy NativeScript projects that target Android.
205
189
206
190
* Ubuntu 14.04 LTS
207
-
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/) or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/) stable official release
191
+
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/) or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/), or [4.2.x](https://nodejs.org/dist/latest-v4.x/) stable official release
208
192
209
193
> **TIP:** You can follow the instructions provided [here](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) to install Node.js on your system.
Copy file name to clipboardExpand all lines: lib/services/android-project-service.ts
+12-15Lines changed: 12 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -91,9 +91,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
91
91
this.$errors.failWithoutHelp(`The NativeScript CLI requires Android runtime ${AndroidProjectService.MIN_RUNTIME_VERSION_WITH_GRADLE} or later to work properly.`);
92
92
}
93
93
94
-
// TODO: Move these check to validate method once we do not support ant.
this.$logger.warn(`WARNING: Gradle version is lower than ${DoctorService.MIN_SUPPORTED_GRADLE_VERSION}.`);
71
-
this.$logger.out("You will not be able to build your projects for Android or run them in the emulator or on a connected device."+EOL
72
-
+`To be able to build for Android and run apps in the emulator or on a connected device, verify that you have at least ${DoctorService.MIN_SUPPORTED_GRADLE_VERSION} version installed.`);
73
-
result=true;
74
-
}
75
-
76
60
if(!sysInfo.javacVersion){
77
61
this.$logger.warn("WARNING: Javac is not installed or is not configured properly.");
78
62
this.$logger.out("You will not be able to build your projects for Android."+EOL
@@ -106,14 +90,5 @@ class DoctorService implements IDoctorService {
106
90
this.$logger.out("TIP: To avoid setting up the necessary environment variables, you can use the Homebrew package manager to install the Android SDK and its dependencies."+EOL);
0 commit comments