如何在 android studio 获取 proguard 错误
How to get proguard errors at android studio
我为发布启用混淆器并收到以下错误:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForFlavorQuaRelease'.
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Job failed, see logs for details
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
如何查看错误?
当时找不到任何指导某人解决第一个混淆错误的帖子。
这就是我所做的。
首先我在设置上启用了调试:
然后在构建时切换视图按钮 window:
底部附近应该有一个错误恢复,看起来像这样:
Note: there were 1 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 2 references to unknown class members.
You should check your configuration for typos.
Note: there were 128 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 62 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)
Warning: there were 4 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
并非所有类型的错误都需要修复才能编译。然而,有些可能会导致崩溃,因此建议按照建议阅读 Proguard 文档。
我为发布启用混淆器并收到以下错误:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForFlavorQuaRelease'.
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Job failed, see logs for details
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
如何查看错误?
当时找不到任何指导某人解决第一个混淆错误的帖子。 这就是我所做的。
首先我在设置上启用了调试:
然后在构建时切换视图按钮 window:
底部附近应该有一个错误恢复,看起来像这样:
Note: there were 1 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 2 references to unknown class members.
You should check your configuration for typos.
Note: there were 128 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 62 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)
Warning: there were 4 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
并非所有类型的错误都需要修复才能编译。然而,有些可能会导致崩溃,因此建议按照建议阅读 Proguard 文档。