Skip to content

Commit 1d71457

Browse files
committed
Update AndroidBuildingFromSource.md
1 parent 73e9bc2 commit 1d71457

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/AndroidBuildingFromSource.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Assuming you have the Android SDK installed, run `android` to open the Android S
1616
Make sure you have the following installed:
1717

1818
1. Android SDK version 23 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
19-
2. SDK build tools version 23.0.1 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle)])
19+
2. SDK build tools version 23.0.1 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
2020
3. Android Support Repository >= 17 (for Android Support Library)
2121
4. Android NDK (download & extraction instructions [here](http://developer.android.com/ndk/downloads/index.html))
2222

@@ -47,8 +47,7 @@ npm install --save github:facebook/react-native#master
4747

4848
Alternatively, you can clone the repo to your `node_modules` directory and run `npm install` inside the cloned repo.
4949

50-
51-
#### 2. Adding missing dependencies
50+
#### 2. Adding gradle dependencies
5251

5352
Add `gradle-download-task` as dependency in `android/build.gradle`:
5453

@@ -64,7 +63,6 @@ Add `gradle-download-task` as dependency in `android/build.gradle`:
6463
...
6564
```
6665

67-
6866
#### 3. Adding the `:ReactAndroid` project
6967

7068
Add the `:ReactAndroid` project in `android/settings.gradle`:
@@ -73,7 +71,8 @@ Add the `:ReactAndroid` project in `android/settings.gradle`:
7371
...
7472
include ':ReactAndroid'
7573
76-
project(':ReactAndroid').projectDir = new File(rootProject.projectDir, '../node_modules/react-native/ReactAndroid')
74+
project(':ReactAndroid').projectDir = new File(
75+
rootProject.projectDir, '../node_modules/react-native/ReactAndroid')
7776
...
7877
```
7978

@@ -109,7 +108,7 @@ compile(project(':react-native-custom-module')) {
109108

110109
## Additional notes
111110

112-
Building from source can take a long time, especially for the first build, as it needs to download ~200 MB of files and compile JSC etc. Every time you update the `react-native` version from your repo, the build directory may get deleted, and all the files are re-downloaded. To avoid this, you might want to change your build directory path by editing the `~/.gradle/init.gradle ` file:
111+
Building from source can take a long time, especially for the first build, as it needs to download ~200 MB of artifacts and compile the native code. Every time you update the `react-native` version from your repo, the build directory may get deleted, and all the files are re-downloaded. To avoid this, you might want to change your build directory path by editing the `~/.gradle/init.gradle ` file:
113112

114113
```gradle
115114
gradle.projectsLoaded {

0 commit comments

Comments
 (0)