【发布时间】:2021-02-06 13:52:03
【问题描述】:
每当我尝试运行 flutter build appbundle 时,我都会收到错误消息。
这是终端中显示的错误消息:
Warning: there were 10 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)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.
* Try:
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 2s
不知道这意味着什么。有什么想法吗?
【问题讨论】:
-
嗨@Akif 谢谢你的评论。我之前找到了那个答案,但我不知道在哪里可以找到 proGuard 规则,以便我可以添加它建议的代码行。你知道proGuard规则在android studio中的位置吗?
标签: android-studio flutter dart proguard