作者:东cz莞痴 | 来源:互联网 | 2023-02-02 00:42
将RxAndroid和Retrofit库添加到我的gradle并进行编译后,我得到了以下错误,在我的Android Studio Message面板中显示.
Error:Execution failed for task
':app:transformClassesWithNewClassShrinkerForProductionDebug'.
> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.
在我的调试中,我使用
minifyEnabled true
useProguard false
我相信我可以使用-dontwarn
或ignorewarnings
压制并让编译继续进行.但我想知道那是什么警告.我在哪里可以找到警告?
1> Elye..:
找到了.只需要打开Gradle Console
(通常是右下角的标签)来查看Gradle Log.
据说
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':app:transformClassesWithNewClassShrinkerForProductionDebug'.
> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
或者,我可能只需要gradlew
使用该--debug
选项运行on命令行.
./gradlew :app:transformClassesWithNewClassShrinkerForInternalDebug --debug