android混淆问题

-keepclassmembers class ** {

    @com.example.data public *;

    @com.example.data public *;

}


[2016-02-16 15:39:00 - PABasicDataDemo] Proguard returned with error code 1. See console

[2016-02-16 15:39:00 - PABasicDataDemo] proguard.ParseException: Expecting class member name before '@' in line 35 of file 'C:\DataDemo\proguard-project.txt',

[2016-02-16 15:39:00 - PABasicDataDemo]   included from argument number 4

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.readNextWord(ConfigurationParser.java:1133)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.readNextWord(ConfigurationParser.java:1117)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.parseMemberSpecificationArguments(ConfigurationParser.java:845)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:697)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:490)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ConfigurationParser.parse(ConfigurationParser.java:139)

[2016-02-16 15:39:00 - PABasicDataDemo] at proguard.ProGuard.main(ProGuard.java:484)


最终找到的原因是proguard-project.txt中不要使用tab,还有就是从pdf复制过来的会带了一些特殊格式,最好自己敲或者把复制过来的前后的空行空格删掉。


你可能感兴趣的:(android混淆问题)