Current JDK version 1.8 has a bug that prevents Room from being incremental this look like Current JDK version 1.8 has a bug that prevents Room from being incremental , but....
m1 device optimize using zulu jdk
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
m1 device is not optimize when using sdk from Android Studio
/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
before i was use kapt 'androidx.room:room-compiler:2.3.0'
where i have active to the plugin id 'kotlin-kapt'
so how i can use zulu sdk instead of android jdk without
error bug that prevents Room from being incremental
? any have trick ?
my device is lagging, hot, and drained battery when use android jdk.
Current JDK version 1.8.0_292-b10 has a bug
(https://bugs.openjdk.java.net/browse/JDK-8007720) that prevents Room from being incremental. Consider using JDK 11+ or the embedded JDK shipped with Android Studio 3.5+.
but what i have research the jdk 11+ is not support on android studio.
edit 1
I have try with Zulu-11.jdk
./gradlew assembleDebug --stacktrace
the exception is same
java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64