android,kotlin2022. 3. 25. 17:29

[kotlin]MacOS Big Sur Kotlin could not find the required JDK tools in the Java installation해결방법

 

assembleRelease 할려고 하는데 ..

 

안된다??

예전에는 문제가 없었는데. mac 업뎃 이후에 생긴 문제란다..

 

터미널에서 

 

 

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java

3가지 실행 후, android studio rebuild 하고 다시 assembleRelease하면 재빌드 된다.. 

 

 

 

[참조]https://stackoverflow.com/questions/55286542/kotlin-could-not-find-the-required-jdk-tools-in-the-java-installation

 

Kotlin could not find the required JDK tools in the Java installation

When running ./gradlew clean build I get following message: > Task :compileKotlin FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileKotlin'...

stackoverflow.com

 

Posted by thdeodls85