zoukankan      html  css  js  c++  java
  • 安卓控件获取器uiautomatorviewer初体验:"unable to connect to the adb. check if adb is installed correctly"

    解决方法:转自:https://plus.google.com/108487870030743970488/posts/2TrMqs1ZGQv

    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 ools -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.bat文件标红部分

    call "%java_exe%" "-Djava.ext.dirs=%javaextdirs%" "-Dcom.android.uiautomator.bindir=C:Usersz_whAppDataLocalAndroidsdk ools" -jar %jarpath% %*

  • 相关阅读:
    迭代器,生成器的理解
    需求
    关于dom 0级 2级 3级事件的理解
    夯实前端基础
    前端面试题 收集
    前端易忘点,持续更新
    form target 文件上传
    ES6 symbol
    bzoj1260 [CQOI2007]涂色paint
    bzoj1083 [SCOI2005]繁忙的都市
  • 原文地址:https://www.cnblogs.com/zihanxing/p/7045090.html
Copyright © 2011-2022 走看看