本文介绍了异常出现在大厦的Android项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
操作系统:Linux Mint的14
当我尝试运行我的项目发生下面的错误。
[TRACE]写出的AndroidManifest.xml
[错误]异常发生,同时建立Android项目:
[错误]回溯(最近通话最后一个):
[错误]文件/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py,系2528,与<模块>
[错误] builder.build_and_run(假,avd_id,debugger_host = debugger_host,profiler_host = profiler_host)
[错误]文件/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py,系2264,在build_and_run
[错误] self.manifest_changed = self.generate_android_manifest(编译)
[错误]文件/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py,系1404,在generate_android_manifest
[错误]-I,self.android_jar] warning_regex = r'skipping')
[错误]文件/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/run.py38行,在运行
[错误]打印[DEBUG]%的%subprocess.list2cmdline(args_to_log)
[错误]文件/usr/lib/python2.7/subprocess.py,线路587,在list2cmdline
[错误] needquote =(在ARG)或(\ t的中ARG)还是不ARG
[错误]类型错误:类型的参数NoneType'不是可迭代
[错误]:构建过程中退出,code 1
[错误]:项目未能建立后1米7S 999ms
解决方案
尝试降级的Android SDK工具(也许还平台,工具和构建工具)rev22到rev21。发生同样的问题,我的MAC(OSX 10.8.3)。我恢复的Android SDK目录的时间机器。
OS: Linux mint 14.
Following error occurs when I try to run my project.
[TRACE] Writing out AndroidManifest.xml
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py", line 2528, in <module>
[ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py", line 2264, in build_and_run
[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR] File "/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py", line 1404, in generate_android_manifest
[ERROR] '-I', self.android_jar], warning_regex=r'skipping')
[ERROR] File "/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/run.py", line 38, in run
[ERROR] print "[DEBUG] %s" % subprocess.list2cmdline(args_to_log)
[ERROR] File "/usr/lib/python2.7/subprocess.py", line 587, in list2cmdline
[ERROR] needquote = (" " in arg) or ("\t" in arg) or not arg
[ERROR] TypeError: argument of type 'NoneType' is not iterable
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 1m 7s 999ms
解决方案
try downgrade Android SDK tools (maybe also platform-tool and build tools) rev22 to rev21.same problem occurred my mac(OSX 10.8.3). I restored Android SDK directory from timemachine.
这篇关于异常出现在大厦的Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!