Skip to content

Commit 41b9f28

Browse files
docs: update Android troubleshooting section (facebook#4794)
1 parent 4ddb218 commit 41b9f28

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

docs/troubleshooting.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -104,37 +104,13 @@ Execution failed for task ':app:installDebug'.
104104
com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException
105105
```
106106

107-
Try [downgrading your Gradle version to 1.2.3](https://github.com/facebook/react-native/issues/2720) in `android/build.gradle`.
107+
Restart the ADB server by running the following commands in your terminal:
108108

109-
## react-native init hangs
110-
111-
If you run into issues where running `npx react-native init` hangs in your system, try running it again in verbose mode and referring to [#2797](https://github.com/facebook/react-native/issues/2797) for common causes:
112-
113-
```shell
114-
npx react-native init --verbose
115109
```
116-
117-
When you're debugging a process or need to know a little more about the error being thrown, you may want to use the verbose option to output more logs and information to nail down your issue.
118-
119-
Run the following command in your project's root directory.
120-
121-
<Tabs groupId="package-manager" queryString defaultValue={constants.defaultPackageManager} values={constants.packageManagers}>
122-
<TabItem value="npm">
123-
124-
```shell
125-
npm run android -- --verbose
110+
adb kill-server
111+
adb start-server
126112
```
127113

128-
</TabItem>
129-
<TabItem value="yarn">
130-
131-
```shell
132-
yarn android --verbose
133-
```
134-
135-
</TabItem>
136-
</Tabs>
137-
138114
## Unable to start react-native package manager (on Linux)
139115

140116
### Case 1: Error "code":"ENOSPC","errno":"ENOSPC"

0 commit comments

Comments
 (0)