Added troubleshooting

Summary:Annoying error which seems to depend on breaking changes in Gradle.
Closes https://github.com/facebook/react-native/pull/6210

Differential Revision: D3011665

Pulled By: mkonicek

fb-gh-sync-id: 84e8b79e22fca91dd38c11ee6d3af31864742469
shipit-source-id: 84e8b79e22fca91dd38c11ee6d3af31864742469
This commit is contained in:
Sebastian Holmqvist 2016-03-04 07:36:21 -08:00 committed by Facebook Github Bot 3
parent 9199c721de
commit 1e96bcf4fa
1 changed files with 12 additions and 1 deletions

View File

@ -50,7 +50,7 @@ React Native Android use [gradle](https://docs.gradle.org) as a build system. We
### Configure your SDK
1. Open the Android SDK Manager (**on Mac** start a new shell and run `android`); in the window that appears make sure you check:
* Android SDK Build-tools version 23.0.1
* Android SDK Build-tools version 23.0.**1**
* Android 6.0 (API 23)
* Android Support Repository
2. Click "Install Packages"
@ -100,3 +100,14 @@ Then restart the emulator and when it runs you can just do `react-native run-and
### Editing your app's Java code in Android Studio
You can use any editor to edit JavaScript. If you want to use Android Studio to work on native code, from the Welcome screen of Android Studio choose "Import project" and select the `android` folder of your app.
### Troubleshooting
In case you encounter
```
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException
```
try downgrading your Gradle version to 1.2.3 in `<project-name>/android/build.gradle` (https://github.com/facebook/react-native/issues/2720)