Android appcelerator钛程序运行问题?

时间:2012-08-23 11:06:16

标签: android titanium appcelerator sample

我是非常适合使用钛的Android应用程序我在安装Windows7后成功创建了一个示例项目,当我在Android模拟器中运行应用程序时,我遇到了以下问题:

 [ERROR] 'xcopy' is not recognized as an internal or external command,
    [ERROR] operable program or batch file.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] The system cannot find the path specified.
    [ERROR] Exception occured while building Android project:
    [ERROR] Traceback (most recent call last):
    [ERROR]   File "C:\Users\User\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\builder.py", line 2236, in <module>
    [ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
    [ERROR]   File "C:\Users\User\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\builder.py", line 2006, in build_and_run
    [ERROR]     for avd_props in avd.get_avds(self.sdk):
    [ERROR]   File "C:\Users\User\AppData\Roaming\Titanium\mobilesdk\win32\2.1.1.GA\android\avd.py", line 23, in get_avds
    [ERROR]     for line in run.run([sdk.get_android(),'list','target'],debug=False).split("\n"):
    [ERROR] AttributeError: 'NoneType' object has no attribute 'split'
    [ERROR] Application Installer abnormal process termination. 

流程退出值为1

3 个答案:

答案 0 :(得分:1)

看起来Titanium无法找到与SDK或模拟器相关的文件。 Titanium设置和运行相当复杂(尽管最近有所改进)。请务必遵循说明中的每一步(http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/Quick_Start),因为缺少一个会导致错误,例如您所拥有的错误。

专门查看此链接:http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/Setting_up_Titanium_Studio-section-30086257_SettingupTitaniumStudio-AndroidSDKConfiguration

答案 1 :(得分:0)

根据此设置路径:http://docs.appcelerator.com/titanium/2.1/#!/guide/Software_Locations_and_Environment_Variables 我相信这会解决你的问题。我解决了我的问题从这个链接没有别的。

答案 2 :(得分:0)

我有同样的问题,并将其添加到PATH环境变量的开头为我修复了它:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

我希望这会有所帮助。