【发布时间】:2017-09-04 10:26:25
【问题描述】:
JS 服务器已经在运行。
在设备上构建和安装应用程序 (cd android && gradlew.bat installDebug)...
下载https://jcenter.bintray.com/com/facebook/react/react-native/0.20.1/react-native-0.20.1.pom
....#这里有一堆下载
:app:assembleDebug
:app:installDebug
05:13:20 E/adb: 无法获得“adb 版本”的结果
:app:installDebug 失败
FAILURE:构建失败并出现异常。
-
出了什么问题: 任务 ':app:installDebug' 执行失败。
com.android.builder.testing.api.DeviceException:无法创建 ADB Bridge。亚行位置:D:\Android\sdk\platform-tools\adb.exe
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
我正在使用 Windows 机器和 android studio,并按照教程完成了
https://facebook.github.io/react-native/docs/getting-started.html
我被困在这个问题上,因为我无法在命令提示符下运行“react-native run-android”
另外,运行 adb 版本会给出
Android 调试桥版本 1.0.32
修订版 eac51f2bb6a8-android
【问题讨论】:
-
您找到解决方案了吗?
-
是 windows 32 位吗?.....在 ubuntu 14.04(32 位)中有类似的问题参考这个askubuntu.com/questions/714653/…
标签: android-studio react-native adb