gpt4 book ai didi

android - Titanium Studio 3.2.0 无法使用 Genymotion 2.0.3 进行调试

转载 作者:行者123 更新时间:2023-11-29 00:23:32 27 4
gpt4 key购买 nike

我在 MacOS X 10.9.1 中使用 Titanium Studio 3.2.0 进行 Android 应用程序开发。我想使用 Genymotion (2.0.3) Emulator 进行调试。当应用程序“运行”时它工作正常但在“调试”时出现错误。这是错误消息。

Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.GA
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[ERROR] : The selected emulator "Nexus 7 - 4.3 - API 18 - 1280x800" does not have an SD card.
[ERROR] : An SD card is required for debugging.
[ERROR] Application Installer abnormal process termination. Process exit value was 1

我尝试将 sdcard.vdi 添加到模拟器,但模拟器无法识别 SD 卡。

最佳答案

这应该在 Titanium SDK 3.2.0.GA 中解决,日期为 12 月 5 日的拉取请求 (https://github.com/appcelerator/titanium_mobile/commit/8e1f1c4a3734d5696383afca1c30765bac4f33b5) 显示了更改。

但是,当您尝试调试时,sdcard 属性不在 emu 对象上。

快速而肮脏的解决方法是破解 sdk。

{sdk}/android/cli/commands/_build.js 第1302行有

} else if (!emu.sdcard) {

将其替换为:

} else if (!emu.sdcard && (emu.type !== 'genymotion')) {

它应该让你进行调试。

enter image description here

( http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/1063aa8a-0ae5-46e2-bc1a-3cf4c779dee6/00000344.png )

关于android - Titanium Studio 3.2.0 无法使用 Genymotion 2.0.3 进行调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21449970/

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