简体   繁体   English

为什么Appcelerator Studio将停止在Windows 10上编译Android Titan应用程序

[英]Why will Appcelerator Studio stop compiling Android titanium app on Windows 10

I have a clean install of Appcelerator Studio 4.4.0 on Windows 10, Android SDK build tools 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. 我在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。 I did install Android Studio with SDK 23 prior to installing Appcelerator Studio. 在安装Appcelerator Studio之前,我确实安装了带有SDK 23的Android Studio。

I'm trying to compile an Android app but the process stops with the following message: 我正在尝试编译Android应用程序,但是该过程因以下消息而停止:

Extracting module resources c:\ProgramData\...\titanium-media.res.zip

This happens no matter if I try to run on a device or the Android emulator. 无论我尝试在设备还是Android模拟器上运行,都会发生这种情况。 I have re-installed Appcelerator Studio from scratch several times but the problem persists. 我已经从头开始重新安装了Appcelerator Studio几次,但问题仍然存在。 I have another machine with Ubuntu 14.04 and I compile the same app with no problem at all. 我有一台装有Ubuntu 14.04的计算机,我完全可以编译相同的应用程序。

One thing that I have seen in the Dev console is the following message: 我在开发人员控制台中看到的一件事是以下消息:

["Expected ')'","",1]
["Exception thrown and not caught","https://appc-studio.appcelerator.com/js/prototype.js",601]

What is wrong with this installation? 此安装有什么问题?

EDIT: The following is the most suspicious set of messages. 编辑:以下是最可疑的消息集。 The rest seems to be normal: 其余的似乎很正常:

 [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!

and then this: 然后这个:

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

Even though the emulator is running Studio launches a new one, and does not connect to the previous one. 即使模拟器正在运行,Studio也会启动新的模拟器,并且不会连接到前一个模拟器。

For fear of stating the obvious, have you added the JDK to your PATH variable? 为了避免表述明显,您是否已将JDK添加到PATH变量中? (google "appcelerator jdk path windows" and you will find looooads of posts about that) (Google“ appcelerator jdk路径窗口”,您会发现很多关于此的帖子)

The only thing which looks different to my (not win10) set up is the JDK? 与我的设置(不是win10)不同的唯一东西是JDK? I have 1.7.0_79. 我有1.7.0_79。 I don't know if this may help? 我不知道这可能有帮助吗?

I know that in the past having JDK7 instead of 6 would cause odd, build-time problems so it might be worth looking at. 我知道过去使用JDK7而不是6会导致奇怪的构建时问题,因此值得研究。

HTH 高温超导

SOLVED: the build-manifest.json file under build\\android folder was corrupted. 已解决:build \\ android文件夹下的build-manifest.json文件已损坏。 I replaced the file and rebuilt and it worked. 我替换了文件并重建了它,并正常工作了。 Strange. 奇怪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM