./gradlew assembleMinApi21Release
json@JSonui-MacPro UIMiddleware % ./gradlew assembleMinApi21Release
> Task :app:compileMinApi21ReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileMinApi21ReleaseJavaWithJavac'.
> 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
javac -version
json@JSonui-MacPro JavaVirtualMachines % javac -version
The operation couldn’t be completed. Unable to locate a Java Runtime that supports javac.
Please visit http://www.java.com for information on installing Java.
www.oracle.com/java/technologies/javase-downloads.html
반응형
'Android > Build Error' 카테고리의 다른 글
[Android] MAC NDK ANDROID_NDK_HOME build error (34) | 2021.04.09 |
---|---|
[Android][Gradle] Could not initialize class org.codehaus.groovy.runtime.InvokerHelper (33) | 2021.01.11 |
[안드로이드][MAC] 개발자를 확인할 수 없기 때문에 'xxx'을(를) 열 수 없습니다. (0) | 2020.09.10 |
[안드로이드][MAC] NDK is missing a platforms directory (0) | 2020.09.10 |
[안드로이드][MAC] files under the build folder are generated and should not be edited (2) | 2020.09.10 |