1

我刚刚开始玩 Titanium 来构建一些小应用程序。

我使用了您可以下载的示例之一,并且在移动网络预览中运行良好。

我已经连接了我的三星 S3 并尝试将其部署到该设备上。

我收到以下错误:

[TRACE] Writing out AndroidManifest.xml
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2553, in <module>
[ERROR]     builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR]   File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2264, in build_and_run
[ERROR]     self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR]   File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 1404, in generate_android_manifest
[ERROR]     '-I', self.android_jar], warning_regex=r'skipping')
[ERROR]   File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\run.py", line 38, in run
[ERROR]     print "[DEBUG] %s" % subprocess.list2cmdline(args_to_log)
[ERROR]   File "C:\Users\danyob\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\subprocess.py", line 580, 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 792ms

有人能帮忙吗?

如上所述,这是一个来自钛的示例应用程序。这是地理编码器之一..

干杯,丹

4

1 回答 1

2

“NoneType”不可迭代是 Android 更新其 SDK 的最新问题,Appcelerator 需要一些时间来发布自己的 SDK 更新以适应。这里有更多信息:http: //developer.appcelerator.com/blog/2013/05/updating-to-android-r22-tools.html

其他人通过创建指向移动文件的符号链接来解决它:https ://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable -on-building-android-app

于 2013-06-03T13:34:24.610 回答