0

尝试在 Windows 上使用钛运行基本应用程序,它运行良好,但突然开始在build.log文件中出现错误

[INFO] logfile = C:\Users\sfarid\workspace\CNS PCC\build.log
[INFO] Building CNS PCC for Android ... one moment
[INFO] Titanium SDK version: 3.0.0 (12/12/12 18:49 a5894b3)
[INFO] Waiting for the Android Emulator to become available
[ERROR] Timed out waiting for android.process.acore
[INFO] Fastdev server running, deploying in Fastdev mode
[INFO] Copying CommonJS modules...
[INFO] Copying project resources..
[INFO] Force including all modules...
[INFO] Force including all modules...
[INFO] Compiling Javascript Resources ...
[INFO] Compiling localization files
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "C:\Users\sfarid\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py", line 2376, in <module>
[ERROR]     builder.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR]   File "C:\Users\sfarid\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py", line 2125, in build_and_run
[ERROR]     self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR]   File "C:\Users\sfarid\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py", line 1056, in generate_android_manifest
[ERROR]     shutil.copy(icon_path, dest_icon)
[ERROR]   File "C:\Users\sfarid\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\shutil.py", line 116, in copy
[ERROR]     copyfile(src, dst)
[ERROR]   File "C:\Users\sfarid\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\shutil.py", line 81, in copyfile
[ERROR]     with open(src, 'rb') as fsrc:
[ERROR] IOError: [Errno 2] No such file or directory: **u'C:**\\Users\\sfarid\\workspace\\CNS PCC\\build\\android\\bin\\assets\\Resources\\appicon.png'
[ERROR] Application Installer abnormal process termination. Process exit value was 1

每次我运行它时它都会重新生成日志文件并添加u它成为错误的原因。

这是主要错误

[ERROR] IOError: [Errno 2] No such file or directory: u'C: \Users\sfarid\workspace\CNS PCC\build\android\bin\assets\Resources\appicon.png' [ERROR] Application Installer 异常进程终止。进程退出值为 1

我是钛新手,请帮助我。

4

1 回答 1

4

尝试更改 tiapp.xml 文件;例如,将版本从 1.0 更改为 1.1。我认为它不会复制必要的文件,并且对 tiapp.xml 的更改会强制它重新创建类文件。

于 2013-02-06T17:23:44.437 回答