2014-11-24 55 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