[AC-1492] OSError: [Errno 2] No such file or directory: '<Project path>/build/android/bin/classes.dex'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-06-30T06:50:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 3.0.2GA, android, build, build.py, classes.dex |
Reporter | AvtarSingh Suchariya |
Assignee | Mauro Parra-Miranda |
Created | 2014-05-29T10:29:29.000+0000 |
Updated | 2016-03-08T07:37:56.000+0000 |
Description
I am getting following error.
{color:red}
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py", line 2418, in
[ERROR] builder.build_and_run(True, None, key, password, alias, output_dir)
[ERROR] File "/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py", line 2208, in build_and_run
[ERROR] launched, launch_failed = self.package_and_deploy()
[ERROR] File "/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py", line 1700, in package_and_deploy
[ERROR] unsigned_apk = self.create_unsigned_apk(ap_)
[ERROR] File "/Users/suchariya/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py", line 1566, in create_unsigned_apk
[ERROR] apk_zip.write(self.classes_dex, 'classes.dex')
[ERROR] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 1114, in write
[ERROR] st = os.stat(filename)
[ERROR] OSError: [Errno 2] No such file or directory: '/Volumes/Data/IDE_Workspaces/Titanium_Studio_Workspace/QVprep Math 3 4 5/build/android/bin/classes.dex'
[ERROR] : Project failed to build after 28s 819ms
{color}
I also followed
http://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable-on-building-android-app
to resolve NoneType issue.
Can you please help me in that ?
We need a simple test case to reproduce this issue as the log trace is not very helpful. Also, you are using Titanium SDK 3.0.2 with Studio 3.2.3 GA. Can you please upgrade all components (Studio, SDK and CLI) to the 3.2.3 GA version and see if it helps solve the issue?
What I am trying to achieve is, I wanted to generate .apk file (distribution) so that I can upload to Google Play. So I tried the same with "Hello World" Application as well but getting the same error. I tried to change from 3.0.2 to 3.2.3 GA but getting some code error because of module so I post pond it to upgrade at this stage.
It appears to be an environment specific issue as you are not even able to build a simple "Hello World" application. I would suggest you to upgrade all components to 3.2.3 GA release as 3.0.2 is a very old release and we will not be able to help you out diagnosing those issues with that release.
Hello, Is it possible if you can provide any kind of patch to this so that at least I can prepare the Build ?