"General error during conversion: Unsupported class file major version 63" when trying to build for android
Unsolved
Mobile and Embedded
-
I am getting
General error during conversion: Unsupported class file major version 63
error while trying to build android project. I newly set up android kits from official installer. I tried to set default jdk to 19 and 11 and got same error for both.
OS:Arch Linux
Any advices about this? -
I've had that same error.
I've switched from JDK 19 to AdoptOpenJDK 11, plus switching from NDK 25.2.9519653 to 23.1.7779620 and now it works. At least for this issue.
-
@ankou29666 Thank you for input. I solved this issue too, with changing gradle version on build folder gradle files. But after it i am getting
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':packageDebug'. > Could not create task ':mergeDebugAssets'. > Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
and couldnt find any solution yet.