New post Thank you for 2021. Expecting a bigger you in 2022 Read More

MobileRandom

How to solve → “shrinker may have failed to optimize the Java bytecode.” in Flutter.

1 Mins read

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

The error that you get.

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.

The solution

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:
GithubHashnodeFacebook, TwitterInstagramYoutubeMediumLinkedIn, etc

Happy Fluttering 👩‍💻

18 posts

About author
I'm passionate about learning and teaching programming, majorly Flutter at the moment. I make friends, develop, or learn from them.
Articles
Related posts
Now you knowRandomStartups

Saga Raises $6.5 million To Build A Web3 Protocol

2 Mins read
Web3 has been everywhere in the news lately, interestingly, for the right reasons I must admit. We are about witnessing the change…
RandomStartups

Aave Launches A Web3 Social Media Platform Powered By Blockchain

2 Mins read
The good news of Web3 will continue to be spread until it completely evolves and becomes a blown reality, having fully been…
RandomStartups

Paystack: how it works.

4 Mins read
Paystack lets businesses in Africa accept payments by anyone, anywhere in the world via credit card, debit card, money transfer, and mobile…
Get powered up with Techpadi Newsletter

Be the first to know what's happening in the African tech space

Leave a Reply