A common error for Flutter build apk
Ratul Hasan Ruhan
1 min read
Causes:
Many plugins, like share_plus, connectivity_plus, etc., now need JDK 17. You get this type of error if you don't have JDK 17.
Solutions:
Download JDK 17. Put any directory. (You can also add the path to the environment variable.)
Add the JDK path to your project gradle.properties. Like this:
org.gradle.java
.home=C://Program Files//Java//jdk-17
That's all.
0
Subscribe to my newsletter
Read articles from Ratul Hasan Ruhan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Ratul Hasan Ruhan
Ratul Hasan Ruhan
Hey, I'm Ratul Hasan Ruhan—a Flutter enthusiast, mobile app developer, and tech blogger. Let's explore the world of Flutter together! 🚀 #MobileDev