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
Random

Incredo An Israeli-Based Food Tech Company Raises $30M In Series C Funding.

2 Mins read
Incredo Sugar, an Israeli company specializing in sugar reduction technology, has successfully raised $30 million in funding to expand its presence in…
Foreign startupsNewsNow you knowRandom

Memcyco Secures $10 Million Funding To Combat Brandjacking

2 Mins read
Tel Aviv-based cybersecurity firm, Memcyco, has successfully concluded a seed funding round, raising $10 million. The investment was led by Capri Ventures…
Foreign startupsNewsRandom

European VC Firm Moonfire Ventures Raises $115M Fund II

2 Mins read
Moonfire Ventures, a European venture capital (VC) firm founded by Mattias Ljungman, former co-founder of Atomico, has been making waves in the…
Get powered up with Techpadi Newsletter

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

Leave a Reply