Hello, this is Dr. Ho of IT. Today we will look at flutter android build error.

The error is java jdk 17 version error.



delete jdk17

It will be around to install jdk11.


I have both installed, so let's see how to delete the jdk17 version.



1. Open a terminal and check the jdk version first. Go to the directory where jdk is installed by putting the following text in the terminal.


cd /Library/Java/JavaVirtualMachines/


2. Enter the following text to check the version.


$ls


There will be an over version


Example) jdk-17.0.1.jdk jdk1.8.0_211.jdk




3. Delete the desired version of jdk by entering the following text.


sudo rm -rf jdk-17.0.1.jdk