我在Windows 10上安装了Appcelerator Studio 4.4.0,Android SDK构建工具21& 23,Appcelerator CLI 5.1.0,Titanium CLI 5.0.5,Titanium SDK 5.1.2,Java JDK 1.0.8_66,Node.js 0.12.7,npm 2.11.3。我在安装Appcelerator Studio之前安装了带有SDK 23的Android Studio。
我正在尝试编译Android应用,但过程会停止,并显示以下消息:
Extracting module resources c:\ProgramData\...\titanium-media.res.zip
无论我是尝试在设备上运行还是在Android模拟器上运行,都会发生这种情况。我已经多次从头开始重新安装Appcelerator Studio,但问题仍然存在。我有另一台使用Ubuntu 14.04的机器,我编译同一个应用程序完全没问题。
我在Dev控制台中看到的一件事是以下消息:
["Expected ')'","",1]
["Exception thrown and not caught","https://appc-studio.appcelerator.com/js/prototype.js",601]
此安装有什么问题?
编辑: 以下是最可疑的消息集。其余的似乎是正常的:
[INFO] : Launching emulator: Nexus_5_API_23_x86
[TRACE] : Starting emulator: Nexus_5_API_23_x86
[TRACE] : Checking if emulator Nexus_5_API_23_x86 is running...
[TRACE] : Detecting if Nexus_5_API_23_x86 exists...
[TRACE] : Found 2 emulators
[TRACE] : Emulator exists, detecting all running emulators and connected devices...
[TRACE] : Detected 1 running emulators and connected devices
[TRACE] : Checking 1 devices to see if it's the emulator we want
[TRACE] : The emulator is NOT running
[TRACE] : Emulator not running, detecting running emulators
[TRACE] : Found 2 emulators
[TRACE] : Starting the emulator...
[TRACE] : Scanning ports to find a port for the emulator to listening on
[TRACE] : Emulator will listen on port 5557
[INFO] : Running: c:\android-sdk\tools\emulator.exe "-avd" "Nexus_5_API_23_x86" "-port" "5557" "-no-boot-anim" "-partition-size" "128" "-sdcard" "C:\Users\Ivan\.android\avd\Nexus_5_API_23_x86.avd\sdcard.img"
[TRACE] : Emulator is starting, monitoring boot state...
[TRACE] : Checking the boot state for the next 240000 ms
[TRACE] : Waiting for emulator to register with ADB
[TRACE] : Emulator process started
[TRACE] : offline build file C:\Users\Ivan\AppData\Local\Temp\build-0c7e72e7ca552a8e5ab78e0c12606b5de37dbb51.json
[TRACE] : Found 1 devices, checking if any of them are the emulator...
[TRACE] : Emulator is running!
[TRACE] : Checking if boot animation has finished...
[TRACE] : Emulator is booted, emitting booted event
[INFO] : Emulator is booted
[INFO] : SD card not required, skipping mount check
[INFO] : Emulator ready!
然后这个:
2016-02-03T03:04:15.854Z | TRACE | titanium exited with exit code 0
2016-02-03T03:04:15.886Z | TRACE | Sending exit signal to titanium process: 22716
即使模拟器正在运行,Studio也会启动一个新的,并且不会连接到前一个。
答案 0 :(得分:0)
由于害怕说明显而易见,您是否已将JDK添加到PATH变量中? (谷歌" appcelerator jdk路径窗口"你会发现关于它的looooads帖子)
唯一与我(不是win10)设置不同的是JDK?我有1.7.0_79。我不知道这是否有帮助?
我知道过去使用JDK7而不是6会导致奇怪的构建时间问题,因此可能值得一看。
HTH
答案 1 :(得分:0)
已解决:build \ android文件夹下的build-manifest.json文件已损坏。我替换了文件并重建并且有效。奇怪。