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 knowRandom

VERTU Debuts METAVERTU The World's First Web3 Phone

1 Mins read
“Beyond the length of what the eyes can see, to the breadth of what the mind can imagine” is the future of…
Now you knowRandom

Google Announces Six New Features On Search On

3 Mins read
To a layman, Google means “answers” we all run to Google to find answers to our many questions, source for information on…
Now you knowRandom

India's Fragrance Company Nirmalaya Raises $800,000 In Seed Funding

2 Mins read
If you have not been to India, movies and documentaries must provide you with some insight into the beauty of India’s culture…
Get powered up with Techpadi Newsletter

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

Leave a Reply