gpt4 book ai didi

java - 为 android 设置 eclipse 时遇到问题

转载 作者:太空宇宙 更新时间:2023-11-04 15:07:35 26 4
gpt4 key购买 nike

所以我从 teamtreehouse 下载了一个 bundle 并尝试安装它,但遇到了一些问题。当我执行initial_setup时,我看到的是:

C:\android>REM Create a new AVD

C:\android>echo "Creating a new AVD..."
"Creating a new AVD..."

C:\android>echo no | .\sdk\tools\android create avd -n Android44 -t 1 --force

'"\java.exe"' is not recognized as an internal or external command,
operable program or batch file.
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
ERROR: SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.

C:\android>echo "AVD created."
"AVD created."

C:\android>pause
Press any key to continue . . .

我做了一些研究,主要是我看到的是改变路径,我尝试过,但它仍然给了我相同的结果。

最佳答案

'"\java.exe"' is not recognized as an internal or external command,

可能您需要将 Java 路径添加到环境变量中。

这非常有用,取自:Setting JAVA_HOME at Android SDK

  • 单击“开始”,右键单击“计算机”并选择属性(您也可以按住 Windows 键并按暂停/中断键)。
  • 点击左侧的“高级系统设置”。
  • 点击底部的“环境变量”按钮。
  • 单击“系统变量”窗口下方的“新建...”按钮。输入以下内容:

    变量名称:JAVA_HOME

    变量值:C:\jdk1.6.0_23\(*java在你电脑中的路径)

  • 单击“确定”,然后关闭您在第 1 步中打开的系统控制面板

关于java - 为 android 设置 eclipse 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21789381/

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