gpt4 book ai didi

android - Titanium 3.1.0 - 模拟器进程以代码 1 退出 - 无法编译 APK

转载 作者:太空狗 更新时间:2023-10-29 16:41:26 24 4
gpt4 key购买 nike

我在使用 Titanium Studio 时遇到了这个问题。我无法为 Android 编译我的项目。我尝试对项目运行或调试,但我收到此消息:

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...

模拟器没有启动,bin 文件夹中没有构建 APK 文件。我安装了 Android 2.2 和 4.2.2 SDK。我尝试了一切(清理项目,甚至卸载并重新安装 Titanium studio)。

我用 Titanium 2.1.4 完成了这个项目。现在我使用的是 3.1.0,但收到此错误消息。在 tiapp.xml 中,如果我选择使用 Titanium 2.1.4 SDK 运行项目,我会收到以下消息:

[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。如果有人有想法...

我使用的是 Win7 64 位。也许我在配置过程中遗漏了一些东西。

感谢您的帮助。

最佳答案

如果 Kitchen Sink 演示出现这种情况,解决方法是进入 Android SDK 管理器并安装“Android 3.0 (API 11)”。确保应用程序使用模拟器“Google APIs (Android 2.3.3)”和“WVGA854”。我假设存在 Titanium 错误,因为您必须安装比实际使用的 (2.3.3) 更高的 API 级别 (3.0)。完全使用这些设置,Kitchen Sink 可以按预期工作。

关于android - Titanium 3.1.0 - 模拟器进程以代码 1 退出 - 无法编译 APK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17066347/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com