[踩坑填坑] 网狐棋牌编译错误

[复制链接]
作者
n2n1   发布于2021-8-25 01:48:48 来自河北
-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_HOMEJDK的路径,如:D:\Java\jdk1.7.0_79javaJDK安装文件夹;b)把”%JAVA_HOME%\bin”加入到系统变量的Path中,记得用分号隔开。在用户变量中添加CLASSPATH变量为“.;%JAVA_HOME%\lib;”注意前面还有个点。JDK环境配置完成。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-4-29 19:12 , Processed in 0.089739 second(s), 24 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表