• #20 楼 @kasi 额,作为一个初学者,真是惭愧,我在 java build Path 里研究了半天,发现还是搞不定,能否有一个比较傻瓜式的教程?

  • 请教楼主大神有 Python 方面的干货没,就像你上面介绍的 java 的内容一样

  • 我是个初学者,下载了大神你发布的代码,请问如何运行啊,里面是否直接有可执行的文件,如 jar、exe、bat 等。
    就像 SDK 自带的 uiautomatorviewer.bat,执行就打开了。
    我安装的 JDK 是 jdk-8u74-windows-x64.exe
    这个工程我导入了 Eclipse 中,提示有两个错误:
    Errors

    Description Resource    Path    Location    Type
    The project cannot be built until build path errors are resolved    testtool        Unknown Java Problem
    Description Resource    Path    Location    Type
    Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project 'testtool'    testtool        Build path  Build Path Problem
    

    参考网上和历史回复的教程,在 build Path 中修改了 jre 的路径,替换 64 位的 swt.jar,这下报错有 156 多条了
    如何解决啊,另外这个工程的执行入口在哪里?直接点运行吗?
    全是如下这样的:

    Description Resource    Path    Location    Type
    Cannot refer to a non-final variable item1 inside an inner class defined in a different method  UiAutomatorView.java    /testtool/src/com/android/uiautomator   line 284    Java Problem
    Description Resource    Path    Location    Type
    Syntax error, 'for each' statements are only available if source level is 1.5 or greater    BasicTreeNode.java  /testtool/src/com/android/uiautomator/tree  line 69 Java Problem
    Description Resource    Path    Location    Type
    Syntax error, annotations are only available if source level is 1.5 or greater  BasicTreeNodeContentProvider.java   /testtool/src/com/android/uiautomator/tree  line 27 Java Problem