How to solve → “shrinker may have failed to optimize the Java bytecode.
To disable the shrinker, pass the ` — no-shrink` flag to this command” in Flutter.

So I just came across this error while I was trying to integrate google sign in into one of my Flutter app.

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.

This solution work like a charm, if your error has been solved through this article don’t forget to click the clap button as many times you like and follow me. Thanks

Integrate Payment in Flutter using Paystack Payment Gateway.

🔗 Let’s Connect 🔗 → Github | Twitter | Youtube | WhatsApp | LinkedIn | Patreon | Facebook.

Join the Flutter Dev Community 👨‍💻👨‍💻 → Facebook | Telegram | WhatsApp | Signal.

Subscribe to my Telegram channel | Youtube channel | and also to the medium newsletter in the input box above or below👆👆. Thanks

Happy Fluttering 🥰👨‍💻