appcelerator 钛工作室无法启动

appcelerator titanium studio not starting

我刚刚尝试安装新的 appcelerator titanium studio,我能够正确安装它但是当我尝试启动它时它显示以下错误:

以下是我的

appc info

Operating System
  Name                        = Mac OS X
  Version                     = 10.12.6
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8.0GB

Node.js
  Node.js Version             = 9.5.0
  npm Version                 = 5.6.0

Appcelerator CLI
  Installer                   = 4.2.13
  Core Package                = 7.0.3

Titanium CLI
  CLI Version                 = 5.1.0
  node-appc Version           = 0.2.44

Titanium SDKs
  7.1.1.GA
    Version                   = 7.1.1
    Install Location          = /Users/webwerks/Library/Application Support/Titanium/mobilesdk/osx/7.1.1.GA
    Platforms                 = iphone, android
    git Hash                  = 1708b2d
    git Timestamp             = 4/19/2018 18:20
    node-appc Version         = 0.2.45

Mac OS X
  Command Line Tools          = installed

Intel® Hardware Accelerated Execution Manager (HAXM)
  Not installed

Java Development Kit
  Version                     = 9_181
  Java Home                   = /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home

Genymotion
  Path                        = /Applications/Genymotion.app/Contents/MacOS
  Genymotion Executable       = /Applications/Genymotion.app/Contents/MacOS/genymotion
  Genymotion Player           = /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player
  Home                        = /Users/webwerks/.Genymobile/Genymotion

VirtualBox
  Executable                  = /usr/local/bin/VBoxManage
  Version                     = 5.2.8r121009

Android SDK
  Android Executable          = not found
  ADB Executable              = /Users/webwerks/Library/Android/sdk/platform-tools/adb
  SDK Path                    = /Users/webwerks/Library/Android/sdk

日志文件如下:

!SESSION 2018-05-16 17:55:58.244 -----------------------------------------------
eclipse.buildId=unknown
java.version=9
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/webwerks/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/webwerks/.eclipse_keyring -consoleLog -showlocation

!ENTRY VisualUI 4 0 2018-05-16 17:56:04.566
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: VisualUI [3]
  Unresolved requirement: Require-Bundle: com.appcelerator.titanium.core
    -> Bundle-SymbolicName: com.appcelerator.titanium.core; bundle-version="3.1.2.1512467051"; singleton:="true"
       com.appcelerator.titanium.core [30]
         Unresolved requirement: Require-Bundle: com.appcelerator.titanium.daemon.core; visibility:="reexport"
           -> Bundle-SymbolicName: com.appcelerator.titanium.daemon.core; bundle-version="1.0.0.1512401448"; singleton:="true"
              com.appcelerator.titanium.daemon.core [31]
                Unresolved requirement: Require-Bundle: org.msgpack-core

我也试过 运行 在终端上设置 appc,但还是不行。

请让我解决这个问题。

提前致谢

问题出在您的 jdk 版本上。从路径 /Library/Java/JavaVirtualMachines/ 中移除(删除创建的文件夹)安装 java 然后尝试安装 appcelerator.dmg,它会自动要求下载 jdk 并且会下载所需版本的 jdk。

或者,下载此 jdk 版本 (1.8.0_131) 并将 jdk 替换为此版本。希望对你有所帮助