0

我在 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 的机器,我编译同一个应用程序完全没有问题。

我在开发控制台中看到的一件事是以下消息:

["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 也会启动一个新模拟器,并且不会连接到前一个模拟器。

4

2 回答 2

0

为避免说明显而易见的问题,您是否已将 JDK 添加到 PATH 变量中?(谷歌“appcelerator jdk 路径窗口”,你会发现很多关于它的帖子)

唯一看起来与我的(不是 win10)设置不同的是 JDK?我有 1.7.0_79。我不知道这是否有帮助?

我知道过去使用 JDK7 而不是 6 会导致奇怪的构建时问题,因此可能值得一看。

高温高压

于 2016-01-26T09:51:31.563 回答
0

已解决:build\android 文件夹下的 build-manifest.json 文件已损坏。我替换了文件并重建,它工作。奇怪的。

于 2016-02-04T01:10:21.970 回答