Search code examples
javaandroidapkbuilding

Warning While Building Apk Warning: autovalue.shaded.com.google$.auto.common.$MoreElements$1


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.

Any Solution? enter image description here

https://i.sstatic.net/m0Vxe.png

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • 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.