Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2942] Titanium Studio: Compile error after clean build "No such file or directory: appicon.png"

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2011-07-09T06:15:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
Labels1.7.1, appicon, bug, build, clean, studio
ReporterJulian Lindblad
AssigneeTony Guntharp


In Android with ti sdk 1.7.1, if you clean out your build/android folder and then try to launch the simulator, it will give the following error:
[INFO] Compiling Javascript Resources ...
[DEBUG] Processing Android resource drawables
[DEBUG] Detecting modules in /Users/jtoth/Documents/Navtrak/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[DEBUG] found special platform files dir = /Users/jtoth/Documents/Navtrak/platform/android
[DEBUG] copying app icon: /Users/jtoth/Documents/Navtrak/build/android/bin/assets/Resources/appicon.png
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.1/android/builder.py", line 1947, in <module>
[ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR]   File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.1/android/builder.py", line 1740, in build_and_run
[ERROR]     self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR]   File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.1/android/builder.py", line 811, in generate_android_manifest
[ERROR]     shutil.copy(iconpath, dest_icon)
[ERROR]   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 88, in copy
[ERROR]     copyfile(src, dst)
[ERROR]   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 52, in copyfile
[ERROR]     fsrc = open(src, 'rb')
[ERROR] IOError: [Errno 2] No such file or directory: u'/Users/jtoth/Documents/Navtrak/build/android/bin/assets/Resources/appicon.png'
Within build/android/bin/assets you must manually create a Resources folder and then copy appicon.png over to it, otherwise the simulator will never work. The build process should create the Resources directory and copy over appicon.png automatically. Original post as an Q&A-question here: [http://developer.appcelerator.com/question/121512/]


  1. Paul Dowsett 2011-07-09

    This ticket includes very little of the required information. See [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) for more information. I am happy to reopen it when it has been corrected. Thanks

JSON Source