react-native run-android 的时候 前一天还可以打包 都一切正常 今天早上开电脑发现一直报错
01:46:55 E/ddms: 'C:\Users\Administrator\AppData\Local\Android\sdk\platform-tool
s\adb.exe,start-server' failed -- run manually if necessary
:
app:installDebug FAILEDnstallDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge.
ADB location: C:\Users\Administrator\AppData\Local\Android\sdk\platform-tools\ad
b.exe
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 12.469 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
不知道是什么原因 去查百度也没查到 因为我是真机调试 和模拟器路径那个也不一样 更换了adb文件 也还是不行 到底是什么原因呢 求大神解答 急急急
这个问题已经解决了 感谢我们后台小哥哥 原来是因为手机上的360手机助手把 5037的端口给占用了 打开任务管理器 把占用5037端口的进程杀死 然后我还把360手机助手给卸载了 手机上的哟 然后打包就成功了
给大家几个链接去看看
http://blog.csdn.net/lianxue1986/article/details/51811386
https://jingyan.baidu.com/article/3aed632e24d3c5701180916d.html
以上是端口被占用的时候报错的解决办法 如果端口没占用的话 我有个链接 大家可以看看 但我没有尝试 因为我的就是被占用并且已经解决了 http://blog.csdn.net/xishuluoye/article/details/17880663