Error Running Projects In Android Emulator

You must Login before you can answer or comment on any questions.

I don't know whats going on here. I am running my project through titanium studio. Here is the error I see:

[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\builder.py", line 1947, in <module>
[ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR]   File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\builder.py", line 1710, in build_and_run
[ERROR]     compiler.compile()
[ERROR]   File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\compiler.py", line 241, in compile
[ERROR]     self.extra_source_inclusions(fullpath)
[ERROR]   File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.0\android\compiler.py", line 212, in extra_source_inclusions
[ERROR]     content = codecs.open(path,'r',encoding='utf-8').read()
[ERROR]   File "C:\Users\Electron\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\lib\codecs.py", line 618, in read
[ERROR]     return self.reader.read(size)
[ERROR]   File "C:\Users\Electron\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\lib\codecs.py", line 424, in read
[ERROR]     newchars, decodedbytes = self.decode(data, self.errors)
[ERROR] UnicodeDecodeError: 'utf8' codec can't decode byte 0xad in position 577: unexpected code byte

1 Answer

Accepted Answer

You properly have a problem with your encoding on your app.js, you can in Titanium Studio choose File -> Properties (Alt + Enter) and choose another encoding or change something in your tiapp.xml to force a complete rebuild.

Your Answer

Think you can help? Login to answer this question!