react-native run-android DeviceException无法创建ADB桥 [英] react-native run-android DeviceException Could not create ADB Bridge
本文介绍了react-native run-android DeviceException无法创建ADB桥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个React-Native项目,当我运行react-native run-ios
时,构建成功.但是当我运行react-native run-android
时,出现此错误:
I have created a React-Native Project,When I run react-native run-ios
,I get the build successed.But when I run react-native run-android
I get this error:
* 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
预先感谢.
推荐答案
我已经解决了,错误是因为Genymotion使用自己的SDK而不是自定义SDK位置.我通过以下网址解决了这个问题:
I have solve it, The error is because Genymotion use its own SDK not custom SDK location.I solved this question with the URL follow:
React-Native,Android,Genymotion:ADB服务器没有确认
感谢西蒙!
这篇关于react-native run-android DeviceException无法创建ADB桥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文