tianium error“TypeError:'NoneType'类型的参数不可读取”

2024-05-19 18:49:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用钛sdk2.0.1.GA2为android2.2构建一个钛应用程序。 我无法解决关于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

我不使用钛合金工作室,我执行生成器.py直接用于建筑应用。
我要构建的应用程序是使用Tianium SDK 2.0.1.GA2创建的。
我已经将buildtools 17.0.0中的aapt、dx、lib移到了platformtools中。在

这是我的发展环境:

操作系统:VMWare Fusion 5.0.3上的Debian 7
Python:Python 2.7.3
nodejs:v0.10.33
Java:OpenJDK 1.6

我怎么造这个?在

谢谢并致以诚挚的问候。在


Tags: runinpyhomelinuxlinesdkerror