android----关于使用Genymotion模拟器产生的错误Unable to establish a connection to adb

最近下载了Genymotion模拟器来用用,确实是快多了。

但是,最近打开AndroidStudio后,总是弹出以下的错误:

Unable to establish a connection to adb. This usually happens if you have an incompatible version of adb running already. Try re-opening Studio after killing any existing adb daemons. If this happens repeatedly, please file a bug at http://b.android.com including the following: 1. Output of the command: 'D:\Program Files\Android\Android\sdk\platform-tools\adb.exe devices' 2. Your idea.log file (Help | Show Log in Explorer)

原因分析:

因为有两个不同AndroidSDK路径,Genymotion模拟器使用自带的sdk,与AndroidStudio的sdk路径不同,导致开启模拟器后不能启动adb.exe。

解决方法:

打开

点击Settings

设置ADB选项

点击OK,然后重启AndroidStudio即可。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值