Skip to content

Commit 6196bce

Browse files
MeowShejuanarbol
authored andcommitted
doc: improved building doc for Android
PR-URL: #44166 Reviewed-By: Feng Yu <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent 8725a87 commit 6196bce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

BUILDING.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ file a new issue.
3737
* [Option 1: Manual install](#option-1-manual-install)
3838
* [Option 2: Automated install with Boxstarter](#option-2-automated-install-with-boxstarter)
3939
* [Building Node.js](#building-nodejs-2)
40-
* [Android/Android-based devices (e.g. Firefox OS)](#androidandroid-based-devices-eg-firefox-os)
40+
* [Android](#android)
4141
* [`Intl` (ECMA-402) support](#intl-ecma-402-support)
4242
* [Build with full ICU support (all locales supported by ICU)](#build-with-full-icu-support-all-locales-supported-by-icu)
4343
* [Unix/macOS](#unixmacos)
@@ -659,22 +659,25 @@ To test if Node.js was built correctly:
659659
> Release\node -e "console.log('Hello from Node.js', process.version)"
660660
```
661661

662-
### Android/Android-based devices (e.g. Firefox OS)
662+
### Android
663663

664664
Android is not a supported platform. Patches to improve the Android build are
665665
welcome. There is no testing on Android in the current continuous integration
666666
environment. The participation of people dedicated and determined to improve
667667
Android building, testing, and support is encouraged.
668668

669669
Be sure you have downloaded and extracted
670-
[Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) before in
670+
[Android NDK](https://developer.android.com/ndk) before in
671671
a folder. Then run:
672672

673673
```console
674-
$ ./android-configure /path/to/your/android-ndk
675-
$ make
674+
$ source ./android-configure /path/to/your/android-ndk target_arch android_sdk_version
675+
$ make -j4
676676
```
677677

678+
The Android SDK version should be at least 24 (Android 7.0) and the target
679+
architecture supports \[arm, arm64/aarch64, x86, x86\_64].
680+
678681
## `Intl` (ECMA-402) support
679682

680683
[Intl](https://github.com/nodejs/node/blob/HEAD/doc/api/intl.md) support is

0 commit comments

Comments
 (0)