0

我用 Titanium Studio 构建了一个应用程序。IOS 模拟器完美运行。但我无法在 Android 模拟器中构建我的应用程序。我有 Android SDK v.22,我使用的是 Titanium 3.1.3。

有人能告诉我我必须做什么吗?

我得到这个日志:

[INFO] Titanium SDK version: 3.1.3 (09/18/13 12:00 222f4d1)

[INFO] Waiting for the Android Emulator to become available

[ERROR] Timed out waiting for android.process.acore

[INFO] Fastdev server running, deploying in Fastdev mode

[INFO] Copying CommonJS modules...

[INFO] Copying project resources..

[ERROR] Exception occured while building Android project:

[ERROR] Traceback (most recent call last):

[ERROR]   File "/Users/timstrakerjahn/Library/Application
Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 2598, in <module>

[ERROR]     builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 2245, in build_and_run

[ERROR]     self.copy_project_resources()

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 865, in copy_project_resources

[ERROR]     self.project_deltas = self.project_deltafy.scan()

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/deltafy.py", line 163, in scan

[ERROR]     self.scan_path(self.dir, deltas)

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/deltafy.py", line 195, in scan_path

[ERROR]     self.scan_path(absolute_path, deltas)

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/deltafy.py", line 203, in scan_path

[ERROR]     file_delta = self.check_delta(absolute_path, path_stat)

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/deltafy.py", line 147, in check_delta

[ERROR]     timestamp = self.get_timestamp(path)

[ERROR]   File "/Users/timstrakerjahn/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/deltafy.py", line 116, in get_timestamp

[ERROR]     c.execute('select modified from timestamps where path = ?', (path,))

[ERROR] ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

[ERROR] :  Build process exited with code 1

[ERROR] :  Project failed to build after 46s 605ms

[ERROR] Application Installer abnormal process termination. Process exit value was 1
4

1 回答 1

1

如果您可能会出现此问题

  • 文件名包含非标准字符(如 ñ 或 é)。
    仅在文件名中切换到标准 unicode 字符。
  • 偶然在您的资产中添加了一个 PSD 文件

这是 appcelerator 开发者论坛上原始问题的链接:http: //developer.appcelerator.com/question/139685/programmingerror-you-must-not-use-8-bit-bytestrings-unless-you-use- a-textfactory-that-c​​an-interpret-8-bit-bytestrings

于 2013-10-06T16:31:00.220 回答