You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying and failing to build the project on Arch Linux (rolling release, up to date) for the last few hours. I'm attempting to test changes so I can contribute them to NewPipeExtractor.
Should be reproducible by taking the most straightforward and obvious steps. I git clone NewPipe and NewPipeExtractor, I'm using the most recent Android Studio from the AUR. I set my system JDK to openJDK 17, as that's what the CI builds appear to use.
The initial error I see:
java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x6cd7cf1b) 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 @0x6cd7cf1b
The suggestion here is to update Kotlin 1.9 to the latest patch version. I've done this (to 1.9.25) although I'm not sure why it's necessary as (if I read the linked bug report correctly) the issue is only supposed to happen with Java >= 21. In any event this does at least change the error I see.
With
ext.kotlin_version = '1.9.25'
and syncing gradle, I get this error now:
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
Building with a stacktrace shows a root cause that seems to be internal to Kotlin:
Caused by: java.lang.NullPointerException: Cannot read field "kind" because "" is null
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checklist
What is/are your question(s)?
I have been trying and failing to build the project on Arch Linux (rolling release, up to date) for the last few hours. I'm attempting to test changes so I can contribute them to NewPipeExtractor.
Should be reproducible by taking the most straightforward and obvious steps. I
git clone
NewPipe and NewPipeExtractor, I'm using the most recent Android Studio from the AUR. I set my system JDK to openJDK 17, as that's what the CI builds appear to use.The initial error I see:
Searching for the issue sent me to https://stackoverflow.com/questions/77628445/java-lang-illegalaccesserror-superclass-access-check-failed-class-org-jetbrain
The suggestion here is to update Kotlin 1.9 to the latest patch version. I've done this (to 1.9.25) although I'm not sure why it's necessary as (if I read the linked bug report correctly) the issue is only supposed to happen with Java >= 21. In any event this does at least change the error I see.
With
and syncing gradle, I get this error now:
Building with a stacktrace shows a root cause that seems to be internal to Kotlin:
kotlin.stacktrace.txt
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions