gpt4 book ai didi

java - android 项目构建失败

转载 作者:行者123 更新时间:2023-12-01 06:16:48 26 4
gpt4 key购买 nike

编译:

BUILD FAILED
D:\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
D:\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
D:\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:734: Unable to fin d 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"

path is ::C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\Wind
owsPowerShell\v1.0\;
C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.6\;
D:\Progr am Files\nodejs\;E:\practicum\Softwares\apache-ant-1.9.3\bin;
E:\practicum\Softwa res\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk\pl atform-tools;
E:\practicum\Softwares\adt-bundle-windows-x86_64-20131030\adt-bundl e-windows-x86_64-20131030\sdk\tools
;C:\Program Files\Java\jdk1.7.0_25\lib;C:\Pro gram Files\Java\jdk1.7.0_25\bin;
C:\Users\srinivas\AppData\Roaming\npm;

请告诉我如何解决该问题。

最佳答案

使“JAVA_HOME”变量指向 JDK 安装,而不是 JRE。您正在引用运行时环境,而不是开发工具包 - 它找不到编译器,因为它不在那里。

应该是这样的:

“C:\Program Files\Java\jdk1.7.0_51”

但是,路径和 JDK 版本可能因您的系统而异。

关于java - android 项目构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22678299/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com