![]() I only do Flutter development on the Mac. I also don't surf the web or download/install stuff on my Mac. why am I even here? Where did my Java go? I went to Oracle, but they mention about costs. But typing java -version or /usr/bin/java -version gives that same error. When I type which java or which javac they both point to /usr/bin/java and /usr/bin/javac. But I've BEEN building to Android, so I'm completely confused why today it all of a sudden can't find Java. I also tried a different project via Android Studio, and it says the same thing. Please visit for information on installing Java. But there is no Java icon in my System Preferences. Research says to check the Java icon in the System Preferences. ![]() I've been building to 3 different Android devices (1 emulator 2 devices (one USB one wireless)) since I got my MBP (came with Big Sur) a couple months ago. All of a sudden I cannot build to Android. We need to add the below function in your ~/.bashrc or ~/.zshrc so that we can switch between different Java versions.I run Flutter in VS Code, and have been having no issues until today. OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing) OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7) Actually I already mentioned how to install Java JDK in the above post, but I will shortly show one more time $ brew tap adoptopenjdk/openjdk $ brew search jdkĪdoptopenjdk8-openj9-large $ brew cask install adoptopenjdk $ java -version
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |