gpt4 book ai didi

android - 我如何知道 Proguard 警告我哪些类?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:24:50 26 4
gpt4 key购买 nike

我正在尝试发布我的应用程序,但 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 正在谈论哪些具体引用?他们肯定不希望我独立找到/记住这些引用资料吗?

最佳答案

在您的模块特定构建文件夹中,usage.txt 文件被创建。

build/outputs/mapping/release/usage.txt

此文件包含所有删除的方法以及受影响的类。确保您自己的项目中任何重要的类都没有被删除。

关于android - 我如何知道 Proguard 警告我哪些类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38537095/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com