1


我有一个具有 UTF8 名称(希伯来语)的应用程序。我为此使用了 platform/android/AndroidManifest.xml 文件。
我设法将其缩小到 Ti.cloudpush 模块。只有当我启用此模块时,我才会收到错误消息。

我曾经能够毫无问题地将它编译到android,但是一旦我启用云服务,我就会收到这个错误 -

[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 2218, in <module>
[ERROR]     s.build_and_run(True, None, key, password, alias, output_dir)
[ERROR]   File "/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 1970, in build_and_run
[ERROR]     self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR]   File "/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 1195, in generate_android_manifest
[ERROR]     custom_manifest_contents = fill_manifest(custom_manifest_contents)
[ERROR]   File "/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 1122, in fill_manifest
[ERROR]     manifest_source = manifest_source.replace(ti_permissions,permissions_required_xml)
[ERROR] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 501: ordinal not in range(128)

这是我的清单文件,其中包含导致问题的部分。如果我删除希伯来语名称,它编译没有任何问题

<application
    android:icon="@drawable/appicon"
    android:label="??????"
    android:name="QuestionnaireApplication"
    android:debuggable="false"
>
    <activity
        android:name=".QuestionnaireActivity"
        android:label="??????"
        android:theme="@style/Theme.Titanium"
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden"
    >

有什么建议么?

4

1 回答 1

0

在 Titanium Studio 中,在工具栏上,单击 Project -> Clean。重建。

于 2012-12-03T23:02:00.933 回答