【问题标题】:Titanium : Exception Occured While Building Android Project [duplicate]Titanium:构建Android项目时发生异常[重复]
【发布时间】:2013-05-20 12:45:18
【问题描述】:

操作系统: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

【问题讨论】:

    标签: android titanium titanium-mobile


    【解决方案1】:

    这个问题似乎出现在新版本的 Android SDK (22) 上。 (新的 SDK 版本移动了一些文件并创建了 build-tools 项)

    我在这里找到了解决方案 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/

    【讨论】:

    • 另请参阅 dj aqeel 提出的同一问题的答案 here。添加这些符号链接对我有用。
    猜你喜欢
    • 2013-05-12
    • 2022-12-17
    • 2016-02-04
    • 1970-01-01
    • 2013-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多