unable to connect to the adb. check if adb is installed correctly
2013-02-17 15:23
651 查看
from:https://plus.google.com/108487870030743970488/posts/2TrMqs1ZGQv
My first experience with the new uiautomatorviewer:
"unable to connect to the adb. check if adb is installed correctly"
Challenge Accepted:
1. ScreenshotAction class has this in its run() method when !DebugBridge.isInitialized()
2. DebugBridge is not initialized when it can't find the "platform-tools" folder which it gets via the property ""com.android.uiautomator.bindir"
3. The above property is set (in windows) in uiautomatorviewer.bat:
call %java_exe% -Djava.ext.dirs=%javaextdirs% -Dcom.android.uiautomator.bindir= -jar %jarpath% %*
4. Strange that it is empty isn't it. Changing the above line in my case to:
call %java_exe% -Djava.ext.dirs=%javaextdirs% -Dcom.android.uiautomator.bindir=H:\android-sdk\tools -jar %jarpath% %*
This solves the issue, and UI Automator Viewer is up. The app is pretty neat with all the "mouse over"-"find view" feature.
Endian Ogino
2012-11-17 - 公开My first experience with the new uiautomatorviewer:
"unable to connect to the adb. check if adb is installed correctly"
Challenge Accepted:
1. ScreenshotAction class has this in its run() method when !DebugBridge.isInitialized()
2. DebugBridge is not initialized when it can't find the "platform-tools" folder which it gets via the property ""com.android.uiautomator.bindir"
3. The above property is set (in windows) in uiautomatorviewer.bat:
call %java_exe% -Djava.ext.dirs=%javaextdirs% -Dcom.android.uiautomator.bindir= -jar %jarpath% %*
4. Strange that it is empty isn't it. Changing the above line in my case to:
call %java_exe% -Djava.ext.dirs=%javaextdirs% -Dcom.android.uiautomator.bindir=H:\android-sdk\tools -jar %jarpath% %*
This solves the issue, and UI Automator Viewer is up. The app is pretty neat with all the "mouse over"-"find view" feature.
相关文章推荐
- uiautomatorviewer出现Unable to connect to adb. Check if adb is installed correctly解决方法
- uiautomatorviewer出现Unable to connect to adb. Check if adb is installed correctly解决方法
- 错误提示:Unable to connect to adb.Check if adb is installed correctly
- Android uiautomatorviewer 出现Unable to connect to adb. Check if adb is installed correctly
- uiautomatorviewer出现Unable to connect to adb. Check if adb is installed correctly的解决方法
- Unable to connect to data source (DSN: shangjihuiclient; Network Address: ; Port Number: 53397). Cannot connect to TimesTen Server. Verify that the TimesTen Server is running or verify that your TCP PORT is set correctly.
- 错误Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.
- [VB.NET]Unable to start debugging. The debugger is not properly installed 重裝不了,修復安裝也安裝不了
- Android How to Check if the App is in Background
- 错误Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version
- Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL serve
- 【LR】The Vuser Generator is unable to create a text check in this manner .To create a text check,swich to the Server Response vie
- Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version. 的处理
- GENERAL ERROR: The user is unable to connect to the Oracle database
- 【LR】The Vuser Generator is unable to create a text check in this manner .To create a text check,swich to the Server Response vie
- How to check if the silverlight application is in design mode?
- The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Please ensure that adb is correctly located
- VNX5700_DR Slot 2: The DNS client is unable to connect to name server
- Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matc