0

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

 [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

4

3 回答 3

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

于 2012-09-07T16:36:51.590 回答
0

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

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

我希望这有帮助。

于 2013-03-23T13:18:03.423 回答
0

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

于 2012-12-28T09:47:11.993 回答