我正在尝试发布我的应用程序,ProGuard导致我的服务器代码出现各种错误,所以我进入了gradle控制台并看到了这个:
Note: there were 2 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 26 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 22 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 15 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember)
这一切都很好,花花公子,但我怎么知道ProGuard正在谈论哪些具体的参考?他们当然不希望我独立地找到/记住这些参考文献吗?
答案 0 :(得分:4)
在模块特定的构建文件夹中,创建了usage.txt文件。
build/outputs/mapping/release/usage.txt
此文件包含删除的所有方法以及影响的类。确保不删除您自己项目中任何重要的类。
答案 1 :(得分:3)