KaptJavaCompiler cannot access JavaCompiler
class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler cannot access class com.sun.tools.javac.main.JavaCompiler
Reason
Kapt Plugin not compatible with JDK version
Solution
-
force allow illegal access of gradle apis
-
use JDK version less than 16
Allow Illegal Access
open global gradle properties file
open ~/.gradle/gradle.properties
add this property
org.gradle.jvmargs=--illegal-access=permit
rebuild project
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » 【Android】KaptJavaCompiler cannot access JavaCompiler
发表评论 取消回复