簡體   English   中英

Android Appcelerator Titanium程序運行問題?

[英]Android appcelerator titanium Program Running Issue?

我對鈦合金中的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

Titanium似乎在查找與SDK或仿真器相關的文件時遇到問題。 鈦的安裝和運行相當復雜(盡管最近有所改進)。 確保遵循說明中的每個步驟( 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

根據以下步驟設置您的路徑: http : //docs.appcelerator.com/titanium/2.1/#!/guide/Software_Locations_and_Environment_Variables我確信這將解決您的問題。 我已經解決了這個問題。

我遇到了同樣的問題,並將其添加到PATH環境變量的開頭為我修復了此問題:

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

我希望這有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM