哪里可以找到"收缩时发现警告"的警告?

Ely*_*lye 5 android proguard gradle android-studio android-proguard

将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.
Run Code Online (Sandbox Code Playgroud)

在我的调试中,我使用

        minifyEnabled true
        useProguard false
Run Code Online (Sandbox Code Playgroud)

我相信我可以使用-dontwarnignorewarnings压制并让编译继续进行.但我想知道那是什么警告.我在哪里可以找到警告?

Ely*_*lye 12

找到了.只需要打开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.
Run Code Online (Sandbox Code Playgroud)

或者,我可能只需要gradlew使用该--debug选项运行on命令行.

./gradlew :app:transformClassesWithNewClassShrinkerForInternalDebug --debug
Run Code Online (Sandbox Code Playgroud)