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

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

African Gaming Startup Carry1st Raises $27M From Pre-Series B Funding Led By Bitkraft Ventures And A16z

2 Mins read
Unknown to many, the video gaming industry has increasingly become very popular and lucrative around the world, with global revenue of $154.6…
Random

How Social Media changed Digital Advertising

2 Mins read
Social media has had a major impact on the way digital advertising is conducted, and its influence will likely continue to grow…
RandomStartups

Shekel, Mobility Fintech Startup, Raises $1.95M In Pre-Seed Round

1 Mins read
“Our goal is to ensure that every auto dealer in Africa and other emerging markets is able to access the right kind…
Get powered up with Techpadi Newsletter

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

Leave a Reply