After adding RxAndroid and Retrofit library to my gradle, and compile, I got the below error, shows in my Android Studio Message panel.
Error:Execution failed for task
':app:transformClassesWithNewClassShrinkerForProductionDebug'.
> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.
In my Debug, I use
minifyEnabled true
useProguard false
I believe I could use -dontwarn
or ignorewarnings
to suprress and let the compilation continue. But I would like to know what warnings was that. Where could I find the warning?
Found it. Just need to open the
Gradle Console
(normally a tab at the right bottom) to look at the Gradle Log.It is stated
Optionally, I could just need to run the
gradlew
on command line with the--debug
option.It is like the default shrinker has changed. Adding the configuration to turn on ProGuard started to work.