APK文件导出错误

时间:2014-04-02 07:08:35

标签: proguard

当我尝试导出我的APK文件时,这是我的错误日志

[2014-04-02 12:41:06 - 8bitMaker] Proguard returned with error code 1. See console
[2014-04-02 12:41:06 - 8bitMaker] proguard.ParseException: Expecting java type before ' ' in line 95 of file 'G:\Workspace\8bitMaker\proguard-project.txt',
[2014-04-02 12:41:06 - 8bitMaker]   included from argument number 4
[2014-04-02 12:41:06 - 8bitMaker]   at     proguard.ConfigurationParser.checkJavaIdentifier(ConfigurationParser.java:1187)
[2014-04-02 12:41:06 - 8bitMaker]   at proguard.ConfigurationParser.parseMemberSpecificationArguments(ConfigurationParser.java:842)
[2014-04-02 12:41:06 - 8bitMaker]   at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:697)
[2014-04-02 12:41:06 - 8bitMaker]   at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:490)
[2014-04-02 12:41:06 - 8bitMaker]   at proguard.ConfigurationParser.parse(ConfigurationParser.java:139)
[2014-04-02 12:41:06 - 8bitMaker]   at proguard.ProGuard.main(ProGuard.java:484)

这是第95行

的地方
    -keepclasseswithmembers class **.R$** 
{
public static <fields>;
}
****Line 95****   -keepclassmembers class * 
{ @android.webkit.JavascriptInterface <methods>;}
-keep class * extends android.view.View 
{ 

  public <init>(android.content.Context); 
  public <init>(android.content.Context, android.util.AttributeSet); 
  public <init>(android.content.Context, android.util.AttributeSet, int); 
  void set*(***);
   *** get*();
}

根据日志文件,错误代码为1,错误位于第95行。任何人都有任何想法解决此问题?

1 个答案:

答案 0 :(得分:0)

您应该检查该行上或附近是否有一些不可见的控制字符。