Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle is not up to recent versions #69

Open
Random0Kid0Kaushik opened this issue Nov 10, 2024 · 9 comments
Open

Gradle is not up to recent versions #69

Random0Kid0Kaushik opened this issue Nov 10, 2024 · 9 comments

Comments

@Random0Kid0Kaushik
Copy link

When i pulled this repo into my Android Studio, I was warned gradle build was not up to par. I reran the build after upgrading it to 8.5.

@Random0Kid0Kaushik
Copy link
Author

I upgraded the gradle and tried re running, here is the issues that I face now.

java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin. kapt3. base. javac. KaptJavaCompiler (in unnamed module @0x579483de) 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 to unnamed module @0x579483de

and

Internal compiler error.

@Random0Kid0Kaushik
Copy link
Author

Rebuilding the project. (Failed)

Invalidating Caches and Restarting (Failed)

@Random0Kid0Kaushik
Copy link
Author

Upgrading dependencies:

Kotlin Coroutines (Android): 1.7.3

Core KTX: 1.15.0

AppCompat:1.7.0

Material Components: 1.12.0

ConstraintLayout: 2.2.0

JUnit (Test): 4.13.2

Android Test JUnit: 1.2.1

Espresso Core: 3.6.1

removed def room_dependencies (all are same version at 2.6.1)

changing kapt "androidx.room:room-compiler:2.6.1" to use ksp "androidx.room:room-compiler:2.6.1"

@Random0Kid0Kaushik
Copy link
Author

remaining errors:

'compileSdkVersion' is deprecated (compileSdkVersion 33 --> 34) (Weak error)

@Random0Kid0Kaushik
Copy link
Author

New error created: Plugin [idid 'com.google.devtools.ksp'] was not found in any of the following sources.

replaced: id 'com.google.devtools.ksp'
with: id 'org.jetbrains.kotlin.ksp' version '1.9.10-1.0.13'

added mavenCentral()

Replacing didn't work. Added version of com.g.d.ksp (1.9.0-1.10)
replaced: id 'com.google.devtools.ksp'
with: id 'com.google.devtools.ksp' version '1.9.0-1.0.10' apply false

added classpath("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.5.30-1.0.0") to dependencies

dependencies{
/room dependencies/
classpath(...)

//Kotlin Coroutines

didn't. work.

@Random0Kid0Kaushik
Copy link
Author

added classpath to wrong build gradle file.

after changing it, new error has been created.

The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.

(I will work on this later, any feedback or help is greatly appriciated)

@alan614
Copy link
Contributor

alan614 commented Nov 10, 2024

I made some updates on the gradle dependencies in this pull request: #68

It might help build with the newer android studios

@Random0Kid0Kaushik
Copy link
Author

thank you so much! it does look like we have the same changes to the gradle!

@alan614
Copy link
Contributor

alan614 commented Nov 11, 2024

yeah, don't use ksp, just stick with kapt for now, I can't recall off the top of my head anymore, but I think there's still some compatibility with kotlin with the java version I think it uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants