A common error for Flutter build apk
Oct 20, 2024
#### 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.