Код: Выделить всё
>flutter build apk
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-18.0.2.1\bin
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Инсталляция идеально нормальная, я использую это для другого Purposes: Imposes. Описание изображения здесь "src =" https://i.sstatic.net/olberga4.png "/>
Так что здесь происходит?
Подробнее здесь: https://stackoverflow.com/questions/796 ... ot-correct