打包报:UTF-8编码错误


Failed to compile resources with the following parameters:

-bootclasspath "D:/android_sdk\platforms\android-23\android.jar" -d "F:\bwand_game\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\firefly\BattleWarriors\qihoo\R.java"
com\firefly\BattleWarriors\qihoo\R.java:132: ����: '_' ������ʶ��
        public static final int _=0x7f050061;
                                ^
  (Java SE 8 ֮���ķ��а��п��ܲ�֧��ʹ�� '_' ��Ϊ��ʶ��)
1 ������
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
BuildPlayerEditor:OnGUI() (at Assets/Tools/ResourcePacker/Editor/BuildPlayerEditor.cs:288)

UnityEditor.HostView:OnGUI()

打包报:UTF-8编码错误_第1张图片

解决方法:我在eclipse里面找到R.java发现有行代码:  public static final int _=0x7f050061;是eclipse自动生成的,删不掉。

然后我根据类名找到路径(我的是string),找到XML配置文件(res/values/string)找到相应错误的名称,把它删掉。问题解决了!不知道会有什么影响

------------------------------------------------------------2017/01/18---------------------------------------------------------------------------------------------

打包报:UTF-8编码错误_第2张图片

这张图上边的UTF-8的错误是因为jar重复造成的!

你可能感兴趣的:(SDK)