解决react-native run-android报DeviceException Could not create ADB Bridge错误

在使用Genymotion来调试运行React Native项目时,遇到了以下问题:

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: /Applications/ADT/sdk/platform-tools/adb

一直不知道我的ADB哪儿出问题了,去StackOverflow上一查,发现原来是Genymotion的默认SDK路径是它自己的ADB路径,而非我们常用的ADB。修改下路径就好啦。

Genymotion修改的地方在:settings-ADB-Use custom SDK tools.

参考资料:http://stackoverflow.com/questions/35959350/react-native-android-genymotion-adb-server-didnt-ack




你可能感兴趣的:(adb,Genymotion,ReactNative,DeviceException)