Skip to content

Commit c06e54d

Browse files
dulmandakhcharpeni
authored andcommitted
update Android SDK to 28 in docs (facebook#758)
* bump Android SDK to 28 * update versioned_docs
1 parent 270defd commit c06e54d

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

Diff for: docs/building-from-source.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Assuming you have the Android SDK installed, run `android` to open the Android S
1313

1414
Make sure you have the following installed:
1515

16-
1. Android SDK version 26 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
17-
2. SDK build tools version 26.0.3 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
18-
3. Android Support Repository >= 26 (for Android Support Library)
16+
1. Android SDK version 28 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
17+
2. SDK build tools version 28.0.3 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
18+
3. Android Support Repository >= 28 (for Android Support Library)
1919
4. Android NDK (download links and installation instructions below)
2020

2121
#### Point Gradle to your Android SDK:
@@ -32,7 +32,7 @@ Example:
3232

3333
```
3434
export ANDROID_SDK=/Users/your_unix_name/android-sdk-macosx
35-
export ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r10e
35+
export ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r17c
3636
```
3737

3838
**Step 2:** Create a `local.properties` file in the `android` directory of your react-native app with the following contents:
@@ -41,15 +41,15 @@ Example:
4141

4242
```
4343
sdk.dir=/Users/your_unix_name/android-sdk-macosx
44-
ndk.dir=/Users/your_unix_name/android-ndk/android-ndk-r17b
44+
ndk.dir=/Users/your_unix_name/android-ndk/android-ndk-r17c
4545
```
4646

4747
#### Download links for Android NDK
4848

49-
1. Mac OS (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-darwin-x86_64.zip
50-
2. Linux (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip
51-
3. Windows (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-windows-x86_64.zip
52-
4. Windows (32-bit) - http://dl.google.com/android/repository/android-ndk-r17b-windows-x86.zip
49+
1. Mac OS (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
50+
2. Linux (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
51+
3. Windows (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip
52+
4. Windows (32-bit) - http://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip
5353

5454
You can find further instructions on the [official page](https://developer.android.com/ndk/index.html).
5555

@@ -72,8 +72,8 @@ Add `gradle-download-task` as dependency in `android/build.gradle`:
7272
```gradle
7373
...
7474
dependencies {
75-
classpath 'com.android.tools.build:gradle:3.1.4'
76-
classpath 'de.undercouch:gradle-download-task:3.1.2'
75+
classpath 'com.android.tools.build:gradle:3.2.1'
76+
classpath 'de.undercouch:gradle-download-task:3.4.3'
7777
7878
// NOTE: Do not place your application dependencies here; they belong
7979
// in the individual module build.gradle files

Diff for: docs/getting-started.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Once setup has finalized and you're presented with the Welcome screen, proceed t
328328

329329
#### 2. Install the Android SDK
330330

331-
Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the `Android 8.1 (Oreo)` SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.
331+
Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the `Android 9 (Pie)` SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.
332332

333333
The SDK Manager can be accessed from the "Welcome to Android Studio" screen. Click on "Configure", then select "SDK Manager".
334334

@@ -344,12 +344,12 @@ The SDK Manager can be accessed from the "Welcome to Android Studio" screen. Cli
344344

345345
> The SDK Manager can also be found within the Android Studio "Preferences" dialog, under **Appearance & Behavior****System Settings****Android SDK**.
346346
347-
Select the "SDK Platforms" tab from within the SDK Manager, then check the box next to "Show Package Details" in the bottom right corner. Look for and expand the `Android 8.1 (Oreo)` entry, then make sure the following items are checked:
347+
Select the "SDK Platforms" tab from within the SDK Manager, then check the box next to "Show Package Details" in the bottom right corner. Look for and expand the `Android 9 (Pie)` entry, then make sure the following items are checked:
348348

349-
* `Android SDK Platform 27`
349+
* `Android SDK Platform 28`
350350
* `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
351351

352-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `27.0.3` is selected.
352+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `28.0.3` is selected.
353353

354354
Finally, click "Apply" to download and install the Android SDK and related build tools.
355355

@@ -465,7 +465,7 @@ If you use Android Studio to open `./AwesomeProject/android`, you can see the li
465465

466466
![Android Studio AVD Manager](/react-native/docs/assets/GettingStartedAndroidStudioAVD.png)
467467

468-
If you have just installed Android Studio, you will likely need to [create a new AVD](https://developer.android.com/studio/run/managing-avds.html). Select "Create Virtual Device...", then pick any Phone from the list and click "Next", then select the **Oreo** API Level 27 image.
468+
If you have just installed Android Studio, you will likely need to [create a new AVD](https://developer.android.com/studio/run/managing-avds.html). Select "Create Virtual Device...", then pick any Phone from the list and click "Next", then select the **Pie** API Level 28 image.
469469

470470
<block class="native linux android" />
471471

Diff for: website/versioned_docs/version-0.5/building-from-source.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Assuming you have the Android SDK installed, run `android` to open the Android S
1414

1515
Make sure you have the following installed:
1616

17-
1. Android SDK version 26 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
18-
2. SDK build tools version 26.0.3 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
19-
3. Android Support Repository >= 26 (for Android Support Library)
17+
1. Android SDK version 28 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
18+
2. SDK build tools version 28.0.3 (buildToolsVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle))
19+
3. Android Support Repository 28 (for Android Support Library)
2020
4. Android NDK (download links and installation instructions below)
2121

2222
#### Point Gradle to your Android SDK:
@@ -33,7 +33,7 @@ Example:
3333

3434
```
3535
export ANDROID_SDK=/Users/your_unix_name/android-sdk-macosx
36-
export ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r10e
36+
export ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r17c
3737
```
3838

3939
**Step 2:** Create a `local.properties` file in the `android` directory of your react-native app with the following contents:
@@ -42,15 +42,15 @@ Example:
4242

4343
```
4444
sdk.dir=/Users/your_unix_name/android-sdk-macosx
45-
ndk.dir=/Users/your_unix_name/android-ndk/android-ndk-r17b
45+
ndk.dir=/Users/your_unix_name/android-ndk/android-ndk-r17c
4646
```
4747

4848
#### Download links for Android NDK
4949

50-
1. Mac OS (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-darwin-x86_64.zip
51-
2. Linux (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip
52-
3. Windows (64-bit) - http://dl.google.com/android/repository/android-ndk-r17b-windows-x86_64.zip
53-
4. Windows (32-bit) - http://dl.google.com/android/repository/android-ndk-r17b-windows-x86.zip
50+
1. Mac OS (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
51+
2. Linux (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
52+
3. Windows (64-bit) - http://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip
53+
4. Windows (32-bit) - http://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip
5454

5555
You can find further instructions on the [official page](https://developer.android.com/ndk/index.html).
5656

@@ -73,8 +73,8 @@ Add `gradle-download-task` as dependency in `android/build.gradle`:
7373
```gradle
7474
...
7575
dependencies {
76-
classpath 'com.android.tools.build:gradle:3.1.4'
77-
classpath 'de.undercouch:gradle-download-task:3.1.2'
76+
classpath 'com.android.tools.build:gradle:3.2.1'
77+
classpath 'de.undercouch:gradle-download-task:3.4.3'
7878
7979
// NOTE: Do not place your application dependencies here; they belong
8080
// in the individual module build.gradle files

Diff for: website/versioned_docs/version-0.5/getting-started.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Once setup has finalized and you're presented with the Welcome screen, proceed t
329329

330330
#### 2. Install the Android SDK
331331

332-
Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the `Android 8.1 (Oreo)` SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.
332+
Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the `Android 9 (Pie)` SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.
333333

334334
The SDK Manager can be accessed from the "Welcome to Android Studio" screen. Click on "Configure", then select "SDK Manager".
335335

@@ -345,12 +345,12 @@ The SDK Manager can be accessed from the "Welcome to Android Studio" screen. Cli
345345

346346
> The SDK Manager can also be found within the Android Studio "Preferences" dialog, under **Appearance & Behavior****System Settings****Android SDK**.
347347
348-
Select the "SDK Platforms" tab from within the SDK Manager, then check the box next to "Show Package Details" in the bottom right corner. Look for and expand the `Android 8.1 (Oreo)` entry, then make sure the following items are checked:
348+
Select the "SDK Platforms" tab from within the SDK Manager, then check the box next to "Show Package Details" in the bottom right corner. Look for and expand the `Android 9 (Pie)` entry, then make sure the following items are checked:
349349

350-
* `Android SDK Platform 27`
350+
* `Android SDK Platform 28`
351351
* `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
352352

353-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `27.0.3` is selected.
353+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `28.0.3` is selected.
354354

355355
Finally, click "Apply" to download and install the Android SDK and related build tools.
356356

@@ -466,7 +466,7 @@ If you use Android Studio to open `./AwesomeProject/android`, you can see the li
466466

467467
![Android Studio AVD Manager](/react-native/docs/assets/GettingStartedAndroidStudioAVD.png)
468468

469-
If you have just installed Android Studio, you will likely need to [create a new AVD](https://developer.android.com/studio/run/managing-avds.html). Select "Create Virtual Device...", then pick any Phone from the list and click "Next", then select the **Oreo** API Level 27 image.
469+
If you have just installed Android Studio, you will likely need to [create a new AVD](https://developer.android.com/studio/run/managing-avds.html). Select "Create Virtual Device...", then pick any Phone from the list and click "Next", then select the **Pie** API Level 28 image.
470470

471471
<block class="native linux android" />
472472

0 commit comments

Comments
 (0)