当前位置:Gxlcms > 数据库问题 > Unable to connect to adb. Check if adb is installed correctly解决方法

Unable to connect to adb. Check if adb is installed correctly解决方法

时间:2021-07-01 10:21:17 帮助过:75人阅读

技术分享图片

 

2、在  UI Automator Viewer界面点击第二个按钮 Device Screenshot 

技术分享图片

 

3、此时出现 Unable to connect to adb. Check if adb is installed correctly 错误:

技术分享图片

 

解决方案:

1、打开  "E:\android-sdk_r24.4.1-windows\android-sdk-windows\tools"中的uiautomatorviewer.bat文件

2、找到 uiautomatorviewer.bat 文件最后一行

技术分享图片

把将其中的binddir=%prog_dir%修改为 SDK 的 platform-tools所在路径(我的 SDK 路径为:E:\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools)。

3、修改后的最后一行为:

技术分享图片

4、再次启动工具  UI Automator Viewer,就可以正常运行。

 

Unable to connect to adb. Check if adb is installed correctly解决方法

标签:androi   form   sdk   for   http   ble   工具   scree   出现   

人气教程排行