构建Android项目时出现异常

时间:2013-05-17 12:53:29

标签: android titanium titanium-mobile titanium-modules

OS:Linux mint 14。

当我尝试运行项目时发生以下错误。

[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

2 个答案:

答案 0 :(得分:6)

尝试将Android SDK工具(可能还有平台工具和构建工具)rev22降级到rev21。 我的mac发生了同样的问题(OSX 10.8.3)。我从timemachine恢复了Android SDK目录。

答案 1 :(得分:0)

如果您在新安装的Titanium Studio上遇到此问题,请确保在应用程序的“tiapp.xml”中,在构建属性下,“Titanium SDK”设置为3.1.3GA(或者,对于未来的读者,无论最新版本是什么。)