0

我可以在“浏览器中的移动应用预览”中运行该应用,并且可以成功启动Android Emulator。但是模拟器只是一直显示主屏幕而没有加载我的应用程序。我在网上浏览了所有类似的问题,但找不到解决方案。

这是控制台...希望有人可以帮助我。谢谢!

*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\Ni\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py" "emulator" "myFirstApp" "C:\Users\Ni\Android-sdk\adt-bundle-windows-x86\sdk" "C:\Users\Ni\Documents\Titanium_Studio_Workspace\myFirstApp" "com.yn.myFirstApp" "4" "HVGA" "armeabi"
[INFO] :   Running build process:  python "C:\Users\Ni\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py" "simulator" "myFirstApp" "C:\Users\Ni\Android-sdk\adt-bundle-windows-x86\sdk" "C:\Users\Ni\Documents\Titanium_Studio_Workspace\myFirstApp" "com.yn.myFirstApp" "4" "HVGA"
[INFO] logfile = C:\Users\Ni\Documents\Titanium_Studio_Workspace\myFirstApp\build.log
[INFO] Building myFirstApp for Android ... one moment
[INFO] Titanium SDK version: 3.1.0 (04/15/13 18:45 57634ef)
[INFO] :   Emulator process exited successfully
[INFO] :   Project built successfully in 3s 24ms
[INFO] :   Emulator not running, exiting...*
4

3 回答 3

0

我忘了为这个问题添加答案......只有当我选择“以管理员身份运行”时,我才能成功运行 Titanium。

于 2013-11-19T06:14:59.853 回答
0

不知道你是否解决了这个问题,但为了其他人的参考,你不应该自己运行模拟器,让 Titanium Studio 通过简单地使用模拟器选项运行你的应用程序来启动模拟器(就像马丁说的那样)

根据我自己的经验,我可以在模拟器中运行我的应用程序,但是对于所有后续运行,我需要关闭模拟器并再次运行应用程序,因为 Studio 无法检测到模拟器并给我一个类似于你的错误。

于 2013-08-22T03:03:45.560 回答
0

发生这种情况时,您可以手动安装该应用程序。您将在应用目录下的以下目录中找到应用的可执行文件:build/android/bin/YOURAPPNAME.apk。在 Mac 上,您需要打开一个终端窗口,cd 到该目录,然后键入“chmod 777 YOURAPPNAME.apk”。然后 cd 到你的 android sdk 安装目录下的 platform-tools 目录,并运行以下命令:

./adb kill-server
./adb start-server
./adb install <full path name to YOURAPPNAME.apk>

您将看到您的应用程序出现在模拟器的主屏幕上。

我做了一个shell脚本来做到这一点。

于 2014-06-30T19:45:51.263 回答