0

私はチタンのAndroidアプリを初めて使用しますが、Androidエミュレーターでアプリケーションを実行するときにWindows7をインストールした後、1つのサンプルプロジェクトを正常に作成しました。次の問題が発生しました。

 [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またはエミュレーターに関連するファイルを見つけるのに問題があるようです。チタンはセットアップと実行がかなり複雑です(最近は改善されていますが)。手順(http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/Quick_Start)のすべての手順を必ず実行してください。1つでも欠落していると、現在のようなエラーが発生するためです。

特にこのリンクをチェックしてください: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 に答える