[AC-2212] Exception occured while building Android project
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-05-26T07:25:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | android, defect, studio3 |
Reporter | Nedim Cholich |
Assignee | Mauro Parra-Miranda |
Created | 2013-05-26T07:20:57.000+0000 |
Updated | 2016-03-08T07:41:12.000+0000 |
Description
I have recently started seeing these in the console when I try to either run in the emulator or deploy to the device:
[TRACE] Writing out AndroidManifest.xml
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\Nedim\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 2412, in
[ERROR] builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host)
[ERROR] File "C:\Users\Nedim\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 2141, in build_and_run
[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR] File "C:\Users\Nedim\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 1348, in generate_android_manifest
[ERROR] '-I', self.android_jar], warning_regex=r'skipping')
[ERROR] File "C:\Users\Nedim\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\run.py", line 38, in run
[ERROR] print "[DEBUG] %s" % subprocess.list2cmdline(args_to_log)
[ERROR] File "C:\Dev\titanium\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\subprocess.py", line 580, in list2cmdline
[ERROR] needquote = (" " in arg) or ("\t" in arg) or not arg
[ERROR] TypeError: argument of type 'NoneType' is not iterable
Hi Nedim, This is a known issue which we recently fixed (TIMOB-13944). It's due to some breaking changes in Google's r22 Android toolset. You can either use the latest unstable master SDK: http://builds.appcelerator.com.s3.amazonaws.com/index.html#master Or modify the stable 3.1 GA SDK: Back up and then open the following file: C:\Users\[user]\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\androidsdk.py Replace its contents with this: https://raw.github.com/appcelerator/titanium_mobile/master/support/android/androidsdk.py Resolving as duplicate.
Closing since it's a dup.