二:出现异常,同时建立Android项目 [英] Titanium : Exception Occured While Building Android Project

查看:238
本文介绍了二:出现异常,同时建立Android项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统:Linux Mint的14

当我尝试运行我的项目发生

下面的错误。

  [TRACE]写出的Andr​​oidManifest.xml
[错误]异常,同时建立Android项目发生:
[错误]回溯(最近通话最后一个):
[错误]文件/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py,2528线,上述<&模块GT;
[错误] 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)或(在ARG \\ t的)或不ARG
[错误]类型错误:类型的参数'NoneType'不是可迭代
[错误]:构建过程中退出,code 1
[错误]:项目失败后,1米7S 999ms建设


解决方案

此问题似乎与Android SDK(22)的新版本的出现。 (新的SDK版本移动一些文件,并建立了构建工具项目)

我发现这里的解决方案
<一href=\"http://developer.appcelerator.com/question/152618/exception-occured-while-building-android-project\" rel=\"nofollow\">http://developer.appcelerator.com/question/152618/exception-occured-while-building-android-project

要更precise,我使用此命令行解决我的问题:

$ LN -s YOUR_PATH_TO_SDK /构建工具/ 17.0.0 / * YOUR_PATH_TO_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

解决方案

This problem seems to happen with the new version of the Android SDK (22). (The new SDK version moved some files and created the build-tools item)

I found the solution here http://developer.appcelerator.com/question/152618/exception-occured-while-building-android-project

To be more precise, I solved my problem using this command line:

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

这篇关于二:出现异常,同时建立Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆