From 0717eb063931ff0129d6eed95b6689bf4256898d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Jan 2025 15:40:09 -0700 Subject: [PATCH] Try fixing internal "java.lang.IllegalAccessError" errors when building. Says it "cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.main". Why did they make Android development so dumb? Lol. I miss the good'ol Java/XML days. --- app/build.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bd97704..972c8cc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,7 +11,7 @@ plugins { android { namespace = "com.hyperling.expensetracker" - compileSdk = 34 + compileSdk = 35 defaultConfig { applicationId = "com.hyperling.expensetracker" @@ -36,17 +36,17 @@ android { } } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } buildFeatures { compose = true } composeOptions { - kotlinCompilerExtensionVersion = "1.5.1" + //kotlinCompilerExtensionVersion = "1.5.1" // https://medium.com/@rowaido.game/implementing-the-room-library-with-jetpack-compose-590d13101fa7 //kotlinCompilerExtensionVersion = "1.5.11"