react-native执行react-native run-android 时报错

用的是android studio 带的AVD manager模拟。

昨天运行正常,今天跑的时候报错。


Execution failed for task ':app:installDebug'.

> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge.

(1)测试端口

adb devices显示


List of devices attached

* daemon not running; starting now at tcp:5037

could not read ok from ADB Server

* failed to start daemon

error: cannot connect to daemon   


(2)测试搭建环境

react-native init HelloworldProject

cd HelloworldProject

react-native run-android报错


Execution failed for task ':app:installDebug'.

    > com.android.builder.testing.api.DeviceException: Could not create ADB Bridge.  


繁花如伊
浏览 846回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript