- [Download](https://developer.android.com/ndk/downloads) latest version of Android NDK. I'm going go use Linux distribution.
- Set `ANDROID_NDK` Environment Variable to the extracted contents of an archive.
- At this point you should be able to compile the project with `compile.sh` script.
# Run
Technically, if you have Android device with `Development Mode ON` and `adb` binary somewhere on your host PC - you shall be able to install and execute compiled artifact from previous step with help of `run.sh` script. If that is not what you want or have - next sections are for you.
# Android Emulator without Android Studio
**Directory Structure**
```
$ANDROID_SDK_ROOT/
├── cmdline-tools/
| └── latest/
| └── bin/
| ├── avdmanager
| ├── sdkmanager
| ├── ...
|── emulator/
|── platforms/
| └─ android-23/
|── platform-tools/
| ├─ adb
| ├─ fastboot
| ├─ ...
|── system-images/
| └─ android-23/
```
## cmdline-tools
- [Download](https://developer.android.com/studio#command-tools) Command line tools only.
- Set `ANDROID_SDK_ROOT` Environment Variable to the extracted contents of downloaded archive. It is recommended to follow next convention:
> It looks that Android API 27 is the latest officially supported OS image that is capable of being executed as **Aarch64** Android on **x86_64** host. Later versions of Android can be used only as **x86_64** binaries.
- Install packages for Android API 27 (MARSHMELLOW (6.0), etc)