Closed nicolas-raoul closed 2 weeks ago
Hello, am I able to work on this issue? It is my first time working on this repo so please let me know if there is something needed that is not covered by the contribution guidelines.
@baijun6 It is yours, looking forward to your pull request(s). Feel free to fix either all issues or only some of them, as you wish. 🙂
@nicolas-raoul Thank you! I am currently getting the following error when trying to build the prod, beta and running the app. I'm using the latest Android Studio on macOS Sonoma 14.5, SDK 34, and Andriod gradle plugin 8.5 and gradle 8.7. I would be grateful if you could provide any advice as to how to resolve this :)
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:kaptGenerateStubsBetaDebugKotlin'
e: java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x929f129) 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 @0x929f129
Hi, I was having the same error.
What helped me is to change SDK version to 17 in Android Studio (File->Setting->Build,Execution,Deployment->Build->Gradle and change GradleJDK to 17 (I have Azul Zulu version).
Next in build.gradle(app:) I changed this from 11 to 17:
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
Hopefully it helps :)
That worked! Thank you :)
I have made a pull request, fixing some of the issues listed in lint :) https://github.com/commons-app/apps-android-commons/pull/5885
To see the full list, run the
lint
Gradle task.