2014-11-24 70 views
1

我想我的Android应用程序导出并启用ProGuard的,当我得到这个错误: - 从ProGuard的-project.txtProguard的:Proguard.ParseException

Proguard returned with error code 1. See console 
proguard.ParseException: Expecting java type before ' ' in line 79 of file 'C:\Documents and Settings\Acer.ACER-2487AA0235\My Documents\Eclipse\Myproject\proguard-project.txt', 
included from argument number 4 
at proguard.ConfigurationParser.checkJavaIdentifier(ConfigurationParser.java:1187) 
at proguard.ConfigurationParser.parseMemberSpecificationArguments(ConfigurationParser.java:842) 
at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:697) 
at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:490) 
at proguard.ConfigurationParser.parse(ConfigurationParser.java:139) 
at proguard.ProGuard.main(ProGuard.java:484) 

线77-80: -

-keepclassmembers class * 
{ 
@android.webkit.JavascriptInterface <methods>; 
} 

任何想法我做错了什么?

+0

可能重复[Proguard的错误代码1:Proguard.ParseException(http://stackoverflow.com/questions/27074801/proguard-error-code-1-proguard-parseexception) – Tomik 2014-11-24 22:32:50

回答

0
-keepattributes JavascriptInterface 
-keepclassmembers class * { 
    @android.webkit.JavascriptInterface <methods>; 
} 
+0

同样,你的答案会从添加一些细节中受益。 – Onik 2015-10-19 09:10:25