mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Mention Mac-specific needs for building for Android
TBR @abarth
This commit is contained in:
parent
b091101bdb
commit
d28a3e33f4
@ -40,10 +40,17 @@ Building the code
|
||||
Currently we support building on Linux only, for an Android target and for a headless Linux
|
||||
target. Building on MacOS for Android, iOS, and a head-less MacOS target is coming soon.
|
||||
|
||||
### Android (cross-compiling from Linux)
|
||||
### Android (cross-compiling from Mac or Linux)
|
||||
|
||||
## The first time
|
||||
|
||||
* `./tools/android/download_android_tools.py`
|
||||
* On Linux: `sudo ./build/install-build-deps-android.sh`
|
||||
* On Mac: Install Oracle's Java JDK, version 1.7 or later.
|
||||
* On Mac: Install "ant": `brew install ant`.
|
||||
|
||||
## Building
|
||||
|
||||
* (Only the first time) `./tools/android/download_android_tools.py`
|
||||
* (Only the first time) `sudo ./build/install-build-deps-android.sh`
|
||||
* `./sky/tools/gn --android`
|
||||
* `ninja -C out/android_Debug`
|
||||
* `./sky/tools/shelldb start out/android_Debug/ examples/hello_world/lib/main.dart`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user