When I build apk I get the warning, as shown in the image.Problem occurs when shrinking and minify option along with Proguard is enabled. Apk builds without problem when everything above is turned off. Can anyone help me to fix this error?. I tried adding autovalue dependency by searching on Stackoverflow. But still the problem persists.
I found the Solution.
The Proguard file hasn't been linked properly. For those who come across this problem.
In Android studio go to file - Project Structure .On left side Modules - app- and from tab select Build Types and under Proguard file Link it from your source. Clean and Run.