【发布时间】:2020-05-18 12:22:05
【问题描述】:
我已经看到一些人在 VS Code 中使用钛扩展时遇到了这个确切的错误,但我还没有看到一个明确的解决方案。任何想法将不胜感激。
当我单击“播放”以尝试运行“hello world”程序时,我看到以下错误: original error
[ERROR] JDK (Java Development Kit) not installed.
[ERROR] If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
[ERROR] The JDK is required for Titanium and must be manually downloaded and installed from http://appcelerator.com/jdk.
在环境变量中,我通过选择适当的文件夹来设置 java_home:
并设置路径指向bin目录
如果我回显 java_home 它看起来是正确的。
编辑 2020 年 5 月 19 日
当前应用信息
Name = Microsoft Windows 10 Pro
Version = 10.0.18362. All Rights Reserved.
Architecture = 64bit
# CPUs = 8
Memory = 15.9GB
Node.js
Node.js Version = 12.16.3
npm Version = 6.14.4
Appcelerator CLI
Installer = 5.0.0
Core Package = 8.0.0
Titanium CLI
CLI Version = 5.2.2
node-appc Version = 0.2.49
Titanium SDKs
9.0.1.GA
Version = 9.0.1
Install Location = C:\ProgramData\Titanium\mobilesdk\win32\9.0.1.GA
Platforms = android
git Hash = 466c007fd2
git Timestamp = 4/15/2020 21:37
node-appc Version = 0.3.4
Intel® Hardware Accelerated Execution Manager (HAXM)
Installed = yes
Memory Limit = 0 BYTES
Java Development Kit
Not found
Genymotion
Path = not found
Genymotion Executable = not found
Genymotion Player = not found
Home = not found
VirtualBox
Executable = not found
Version = unknown
Android SDK
Android Executable = not found
ADB Executable = not found
SDK Path = not found
Android NDK
NDK Path = not found
NDK Version = not found
Android Platforms
None
Android Add-Ons
None
Android Emulators
None
Genymotion Emulators
None
Connected Android Devices
Samsung Galaxy S10 (preview)
ID = 192.168.80.101:5555
State = device
SDK Version = 10 (android-29)
ABIs = x86
Java Development Kit Issues
× JDK (Java Development Kit) not installed.
If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
set.
The JDK is required for Titanium and must be manually downloaded and installed from
http://appcelerator.com/jdk.
Android Issues
× JDK (Java Development Kit) not found.
If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
set.
The JDK can be downloaded and installed from http://appcelerator.com/jdk.
【问题讨论】:
-
请不要使用图片链接!输入错误并将其添加到代码围栏中。对您的其他图像执行相同操作!
-
按照文档安装正确的 JDK。你需要 1.8.x
-
完成 - 同样的问题
标签: java visual-studio-code titanium appcelerator