IOError:[Errno 2]没有这样的文件或目录使用钛在Android应用程序中获取错误

时间:2013-02-06 15:47:58

标签: android titanium titanium-mobile

尝试在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,这会成为错误的原因。

这是主要错误

[错误] IOError:[Errno 2]没有这样的文件或目录: u'C: \ Users \ sfarid \ workspace \ CNS PCC \ build \ android \ bin \ assets \ Resources \ appicon png格式” [ERROR]应用程序安装程序异常进程终止。流程退出值为1

我是钛的新手,请帮助我。

1 个答案:

答案 0 :(得分:4)

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