So I just came across this error while I was trying to integrate google sign in into one of my Flutter app.
shrinker may have failed to optimize the Java bytecode.
To disable the shrinker, pass the ` — no-shrink` flag to this command
![](https://i0.wp.com/techpadi.africa/wp-content/uploads/2020/11/Screenshot-2020-11-25-124318-1024x369.png?resize=850%2C306&ssl=1)
So, to solve this error just navigate to {your-app-name}\android\app\build.gradle, when you get to the build.gradle file just scroll down to where defaultConfig was specified and change the minSdkVersion from 16 to 21 and the problem is gone.
![](https://i0.wp.com/techpadi.africa/wp-content/uploads/2020/11/Screenshot-2020-11-25-124012.png?resize=436%2C169&ssl=1)
This solution work like a charm, if your error has been solved through this article don’t forget subscribe to newsletter. Thanks
Join Flutter Developer Community: Telegram | Facebook | WhatsApp
Let’s connect each other online:
Github, Hashnode, Facebook, Twitter, Instagram, Youtube, Medium, LinkedIn, etc
Happy Fluttering 👩💻