2013-10-06 188 views
0

我已經使用Titanium Studio構建了一個應用程序。 IOS模擬器完美工作。 但我無法在Android模擬器中構建我的應用程序。我有Android SDK v.22,我正在使用Titanium 3.1.3。Titanium Studio - 無法在模擬器中啓動Android應用程序

有人能告訴我我必須做什麼嗎?

我得到這個日誌:

[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 

回答

1

如果你

  • 有非標準字符的文件名可能會出現此問題(如N或E)。
    僅切換到文件名中的標準Unicode字符。
  • 已經順帶增加了PSD文件到您的資產

這是在Appcelerator的開發者論壇的鏈接,原題: http://developer.appcelerator.com/question/139685/programmingerror-you-must-not-use-8-bit-bytestrings-unless-you-use-a-textfactory-that-can-interpret-8-bit-bytestrings

+0

我有一個與üPNG文件。現在它的工作。 thx那個提示 – tablesuplex

+0

不客氣! – mwfire

相關問題