New post Need visibility? Apply for a FREE post for your Startup.  Apply Here

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 👩‍💻

Don’t miss any tech news ever!

We don’t spam! Read our privacy policy for more info.

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
ArticleForeign startupsRandom

Jove Secures $3.6 Million In Seed Funding

1 Mins read
Jove, a cutting-edge fintech company, has successfully raised $3.6 million in seed funding to propel its mission of democratizing access to digital…
ArticleRandomStartups

Social Media Platform Medial Raises $500K In Pre-Series Funding

1 Mins read
Founded by Niket Raj Dwivedi, Aishwarya Raj Pandey, Prateek Kaien, and Harsh Dwivedi, Medial is a content-driven, community-focused platform designed to cater…
ArticleMobileRandom

Smartphones That Rival The iPhone 16 Pro

1 Mins read
The rivalry between smartphones seems unending; especially the battle for supremacy between iOS and Android devices. The iPhone 16 Pro the latest…
Newsletter Subscription

🤞 Don’t miss any update!

We don’t spam! Read more in our privacy policy

Join our Telegram channel here - t.me/TechpadiAfrica

Leave a Reply