android - 钛 : Exception Occured While Building Android Project

标签 android titanium titanium-mobile

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

关于android - 钛 : Exception Occured While Building Android Project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16649842/

相关文章:

java - 获取数据和保存数据的最佳实践

java - 使用带有 JSch 的 "exec" channel 运行命令不返回任何输出

android - Corona SDK是否适合使用tableview导航的iOS/Android应用

android - 键盘出现时钛 View 被推高

titanium - 使用 iOS 模块构建 Native View 并在 Titanium 中使用它们

Titanium Appcelerator 应用程序 (IOS) 发布问题

android - RecyclerView 上方和下方的 View

android - Android 中的文本作为图像

swift - 如何使用 Swift 制作 appcelerator ios 原生模块?

javascript - 准备要远程加载的 SQLite 数据库以进行移动开发