我正在使用Titanium SDK 2.0.1.GA2构建适用于Android 2.2的Titanium应用程序。 我无法解决有关TypeError的错误:类型' NoneType'是不可迭代的。
这是错误:
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/home/owner/titanium_sdk/amd64/mobilesdk/linux/2.0.1.GA2/android/builder.py", line 2125, in <module>
[ERROR] s.build_and_run(True, avd_id, device_args=device_args)
[ERROR] File "/home/owner/titanium_sdk/amd64/mobilesdk/linux/2.0.1.GA2/android/builder.py", line 1973, in build_and_run
[ERROR] launched, launch_failed = self.package_and_deploy()
[ERROR] File "/home/owner/titanium_sdk/amd64/mobilesdk/linux/2.0.1.GA2/android/builder.py", line 1521, in package_and_deploy
[ERROR] output = run.run([zipalign, '-v', str(ALIGN_32_BIT), app_apk, app_apk+'z'])
[ERROR] File "/home/owner/titanium_sdk/amd64/mobilesdk/linux/2.0.1.GA2/android/run.py", line 30, in run
[ERROR] print "[DEBUG] %s" % (subprocess.list2cmdline(args))
[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
我没有使用Titanium Studio,而是直接执行builder.py来构建应用程序 我想要构建的应用程序是使用Titanium SDK 2.0.1.GA2创建的 我已经将构建工具17.0.0中的aapt,dx,lib移动到了平台工具中。
这是我的开发环境:
操作系统:VMWare Fusion 5.0.3上的Debian 7
Python:Python 2.7.3
nodejs:v0.10.33
Java:OpenJDK 1.6
我如何构建这个?
谢谢和最诚挚的问候。