UiAutomator快速调试之UiAutometorHelper问题求解
uiautomator吧
全部回复
仅看楼主
level 1
Build文件成功后ANT总是出现问题,请指教是为什么
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Buildfile: E:\untitled\build.xml
-check-env:
[checkenv] Android SDK Tools Revision 23.0.2
[checkenv] Installed at E:\yuchong\adt-bundle-windows\sdk
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for demo...
[getuitarget] Project Target: Android 5.1
[getuitarget] API level: 22
[echo] ----------
[echo] Creating output directories if needed...
-pre-compile:
compile:
BUILD FAILED
2016年03月10日 11点03分 1
level 1
BUILD FAILED
E:\yuchong\adt-bundle-windows\sdk\tools\ant\uibuild.xml:183: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre7"
2016年03月10日 11点03分 2
level 4
我好像也遇到了这个问题,已经弃用了。自己写了个bat脚本,运行起来比这个快多了
2016年05月10日 15点05分 3
level 1
把 C:\Program Files\Java\jdk1.7.0_45\lib 下的tools.jar包复制到C:\Program Files\Java\jre7\lib试一下。
2016年12月11日 06点12分 4
1