钛3.1.0 - 与code 1退出仿真处理 - 无法编译APK [英] Titanium 3.1.0 - Emulator process exited with code 1 - Can't compile APK

查看:285
本文介绍了钛3.1.0 - 与code 1退出仿真处理 - 无法编译APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有钛工作室这个问题。我不能编译我的Andr​​oid项目。我尝试运行或调试项目,但我得到这个消息:

I have this issue with Titanium Studio. I can't compile my project for Android. I try to Run or Debug to project, but I've got this message:

Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.0.GA
Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
[INFO] :   Running emulator process: python "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py" "emulator" "MyApp" "E:\Developpement\Mobile\SDKs\Android" "E:\Developpement\Mobile\Appcelerator\MyApp" "com.developper.myapp" "2" "WVGA854" "armeabi"

[INFO] :   Running build process:  python "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py" "simulator" "MyApp" "E:\Developpement\Mobile\SDKs\Android" "E:\Developpement\Mobile\Appcelerator\MyApp" "com.developper.myapp" "2" "WVGA854" "/127.0.0.1:49314"

[INFO] logfile = E:\Developpement\Mobile\Appcelerator\MyApp\build.log

[INFO] Building MyApp for Android ... one moment

[INFO] Titanium SDK version: 3.1.0 (04/15/13 18:45 57634ef)

[ERROR] :  Emulator process exited with code 1

[INFO] :   Project built successfully in 5s 421ms

[INFO] :   Emulator not running, exiting...

仿真器没有启动,没有APK文件是建立在bin文件夹。
我已经安装了Android 2.2和4.2.2 SDK。我试图万物(清洁工程,甚至卸载并重新安装钛工作室)。

The emulator is not starting and no APK file is built in the bin folder. I have the Android 2.2 and 4.2.2 SDK installed. I tried everythings (clean project, even uninstall and reinstall Titanium studio).

我做这个项目,钛2.1.4。现在,我使用的是3.1.0,我得到这个错误信息。
在tiapp.xml,如果我选择用钛2.1.4 SDK运行项目我得到这些消息:

I did this project with Titanium 2.1.4. Now I'm using 3.1.0 and I got this error message. In tiapp.xml, if I choose to run the project with the Titanium 2.1.4 SDK I got these messages :

[INFO] logfile = E:\Developpement\Mobile\Appcelerator\MyApp\build.log

[INFO] Launching Android emulator...one moment

[INFO] Creating new Android Virtual Device (2 WVGA854)

[ERROR] Exception occured while building Android project:

[ERROR] Traceback (most recent call last):

[ERROR]   File "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\2.1.4.GA\android\builder.py", line 2282, in <module>

[ERROR]     s.run_emulator(avd_id, avd_skin, avd_name, avd_abi, add_args)

[ERROR]   File "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\2.1.4.GA\android\builder.py", line 523, in run_emulator

[ERROR]     avd_name = self.create_avd(avd_id, avd_skin, avd_abi)

[ERROR]   File "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\2.1.4.GA\android\builder.py", line 485, in create_avd

[ERROR]     inifilec = open(inifile,'r').read()

[ERROR] IOError: [Errno 2] No such file or directory: 'C:\\Users\\Dev\\.android\\avd\\titanium_2_WVGA854.avd\\config.ini'

和则:

[INFO] logfile = E:\Developpement\Mobile\Appcelerator\MyApp\build.log

[INFO] Building MyAppfor Android ... one moment

[INFO] Titanium SDK version: 2.1.4 (11/09/12 12:46 51f2c64)

[ERROR] Application Installer abnormal process termination. Process exit value was 1

[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

没有仿真器运行,没有的APK建造。
如果任何人有一个想法......

No emulators are running and no APKs are built. If anyone has an idea...

我的Win7使用64位。也许我在配置过程中丢失的财产以后。

I'm using Win7 64bits. Maybe I missed somthing during the configuration.

感谢您的帮助。

推荐答案

如果发生这种情况与厨房水槽演示中,解决办法是进入了Android SDK管理器并安装的Andr​​oid 3.0(API 11)。确保应用程序使用模拟器谷歌的API(Android版2.3.3)和WVGA854。我想有一个钛错误,因为你必须安装一个更高层次的API(3.0),比实际使用(2.3.3)。正是使用这些设置,厨房水槽按预期工作。

If this happens with the Kitchen Sink demo, the fix is to go into the Android SDK Manager and install "Android 3.0 (API 11)". Make sure the app uses emulator "Google APIs (Android 2.3.3)" and "WVGA854". I assume there's a Titanium bug because you have to install a higher API level (3.0) than is actually used (2.3.3). Using exactly these settings, Kitchen Sink works as expected.

这篇关于钛3.1.0 - 与code 1退出仿真处理 - 无法编译APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆