Skip to content

Commit

Permalink
Added Hyper-V Android Emulator Setup Instructions. Closes #3234
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndWessels committed Jan 10, 2016
1 parent 7fb1d1c commit 2d6db6c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/DevelopmentSetupAndroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,20 @@ Genymotion is much easier to set up than stock Google emulators. However, it's o
![Create AVD dialog](/react-native/img/CreateAVD.png)
2. With the new AVD selected, click `Start...`
5. To bring up the developer menu press F2 (or install [Frappé](http://getfrappe.com))

### Windows Hyper-V Alternative

The [Visual Studio Emulator for Android](https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx) is a free android emulator that is hardware accelerated via Hyper-V. It doesn't require you to install Visual Studio at all.

To use it with react-native you just have to add a key and value to your registry:

1. Open the Run Command (Windows+R)
2. Enter `regedit.exe`
3. In the Registry Editor navigate to `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools`
4. Right Click on `Android SDK Tools` and choose `New > String Value`
5. Set the name to `Path`
6. Double Click the new `Path` Key and set the value to `C:\Program Files\Android\sdk`. The path value might be different on your machine.

You will also need to run the command `adb reverse tcp:8081 tcp:8081` with this emulator.

Then restart the emulator and when it runs you can just do `react-native run-android` as usual.

0 comments on commit 2d6db6c

Please sign in to comment.