2013-05-20 111 views
2

操作系統:Linux mint 14.鈦:構建Android項目時發生異常

當我嘗試運行我的項目時發生以下錯誤。

[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 

回答

3

這個問題似乎與新版本的Android SDK(22)發生。 (新的SDK版本移動一些文件,並建立了構建工具項目)

,我發現這裏的解決方案 http://developer.appcelerator.com/question/152618/exception-occured-while-building-android-project

更確切地說,我用這個命令行解決我的問題:

$ ln -s YOUR_PATH_TO_SDK/build-tools/17.0.0/* YOUR_PATH_TO_SDK/platform-tools/

+0

另請查看相同問題的答案dj aqeel問[這裏](http://stackoverflow.com/questions/16649842) /鈦異常發生,同時建設,Android的項目)。添加這些符號鏈接爲我工作。 –

相關問題