我正在尝试为 Titanium 培训网站上的一个实验室构建项目。模拟器本身启动,我可以导航到各个部分,例如下载或浏览器。然而,我的应用程序从未进入模拟器,我不知道为什么。以下是 Ti Studio 3.1.2 中的编译器输出:
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\Greg\AppData\Roaming\Titanium\mobilesdk\win32\3.1.2.GA\android\builder.py", line 2596, in <module>
[ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "C:\Users\Greg\AppData\Roaming\Titanium\mobilesdk\win32\3.1.2.GA\android\builder.py", line 2314, in build_and_run
[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR] File "C:\Users\Greg\AppData\Roaming\Titanium\mobilesdk\win32\3.1.2.GA\android\builder.py", line 975, in generate_android_manifest
[ERROR] self.generate_localizations()
[ERROR] File "C:\Users\Greg\AppData\Roaming\Titanium\mobilesdk\win32\3.1.2.GA\android\builder.py", line 1501, in generate_localizations
[ERROR] doc = parseString(contents.encode("utf-8"))
[ERROR] File "C:\Program Files (x86)\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\xml\dom\minidom.py", line 1921, in parseString
[ERROR] return expatbuilder.parseString(string)
[ERROR] File "C:\Program Files (x86)\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\xml\dom\expatbuilder.py", line 940, in parseString
[ERROR] return builder.parseString(string)
[ERROR] File "C:\Program Files (x86)\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\xml\dom\expatbuilder.py", line 223, in parseString
[ERROR] parser.Parse(string, True)
[ERROR] ExpatError: not well-formed (invalid token): line 1, column 0
[ERROR] : Build process exited with code 1
[ERROR] Application Installer abnormal process termination. Process exit value was 1
编辑:找到它,用于国际化的 xml 文件中的简单语法问题......
[ERROR] ExpatError: not well-formed (invalid token): line 1, column 0