2022년 5월 28일 토요일

Flutter JDK Error with MacOS Big Sur

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 1s
Exception: Gradle task assembleDebug failed with exit code 1

I use MacBook with Catalina OS. and never update OS.
But one day, it was suddenly updated to BigSur.
what!? I Actually did't check Update.

And I updated Android Studio, but the Project did not run.

so I Open the Terminal and Find Java Location.

tools.jar copied and pasted it there. That's all.

But why was the MacBook operating system updated?


/usr/libexec/java_home -V | grep jdk

    1.8.261.12 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
    1.8.0_261 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home

Copied tools.jar from "Java SE 8" Path Lib, and Pasted to "Java" Path Lib

댓글 없음:

댓글 쓰기

ChatGPT 와 AI 미래에 대한 대화, 그리고 감동

우연히 유튜브에서 구글 전 CEO 에릭슈미트가 한 이야기를 보았다. 앞으로 1~2년 사이에 인공지능으로 인해 많은것들이 바뀔것이다. 뭐 이런 이야기는 누구나 할 수 있는 말이다. 책 팔아먹기위해 나온 영상일 수도 있겠지만, 핵심은 영상 뒷부분에 있다....