我试图发布我的应用程序,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)
Run Code Online (Sandbox Code Playgroud)
这一切都很好,花花公子,但我怎么知道ProGuard正在谈论哪些具体的参考?他们当然不希望我独立地找到/记住这些参考文献?
在特定于模块的构建文件夹中,将创建 use.txt 文件。
build/outputs/mapping/release/usage.txt
Run Code Online (Sandbox Code Playgroud)
该文件包含删除的所有方法以及受影响的类。确保您自己的项目中任何重要的类都没有被删除。
| 归档时间: |
|
| 查看次数: |
5119 次 |
| 最近记录: |