Skip to content

Installation

RUBIS edited this page Aug 14, 2017 · 11 revisions

How can I use NANS sdk on my desktop, AVD, emulator?

Windows

Prerequisite

  • android studio 2.3 or newer
  • android SDK 7.1.1 (API level 25)
  • android emulator
  • android system image for API level 25, x86 architecture
  • NANS system image
  • NANS SDK

Install android SDK 7.1.1 and android emulator

  1. Open Android Studio, and go to android SDK manager (Tools -> Android -> SDK Manager).
  2. In SDK platforms tab, check the checkbox next to the Android7.1.1(Nougat)
  3. In SDK tools tab, check Android emulator.
  4. Click 'Apply' and wait.

Install original system image

  1. Open Android Studio, and Run apps (Run -> Run 'your app name').
  2. Then, the 'Select Deployment target' dialog is shown. Click the 'Create New Virtual Device' and select the smart phone what you want, and click next.
  3. In Recommended tab, click Nougat Download whose API level is 25 and ABI is x86 and wait.

Install NANS system image

Please backup the original android-25 folder prior to replacing.

  1. Open AppData folder. ( Run a command (Window + R) and type %appdata% and enter. Alt + upper arrow will show you that. )
  2. Go to .\local\Android\sdk\android-25\google_apis\x86.
  3. replace the build.prop, kernel-qemu, kernel-ranchu, ramdisk.img, system.img, userdata.img with downloaded one, respectively.
  4. Now you can use NANS features in android emulator.

Install NANS SDK

Please backup the original android.jar prior to replacing.

  1. Open AppData folder. ( Run a command (Window + R) and type %appdata% and enter. Alt + upper arrow will show you that. )
  2. Go to .\local\Android\platform.
  3. Replace the android.jar with downloaded one, respectively.
  4. Now you can use NANS APIs in your project.
Clone this wiki locally