n2n1 发表于 2021-8-25 01:48:48

网狐棋牌编译错误

-code-gen:
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
    Handling aidl files...
    No AIDL files to compile.
    ----------
    Handling RenderScript files...
    ----------
    Handling Resources...
    Generating resource IDs...
    ----------
    Handling BuildConfig class...
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环境配置完成。
页: [1]
查看完整版本: 网狐棋牌编译错误