-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
BUILD FAILED
D:\sdk\tools\ant\build.xml:597: The following error occurred while executing thi
s line:
D:\sdk\tools\ant\build.xml:716: The following error occurred while executing thi
s line:
D:\sdk\tools\ant\build.xml:730: 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\jre1.8.0_131"
检查环境变量
在系统或用户变量中新加环境变量JAVA_HOME为JDK的路径,如:D:\Java\jdk1.7.0_79,java为JDK安装文件夹;b)把”%JAVA_HOME%\bin”加入到系统变量的Path中,记得用分号隔开。在用户变量中添加CLASSPATH变量为“.;%JAVA_HOME%\lib;”注意前面还有个点。JDK环境配置完成。
|