Skip to content

Caused by: org.gradle.api.InvalidUserCodeException: Inconsistent JVM-target compatibility detected for tasks 'compileJava' (21) and 'compileKotlin' (17). #289

Answered by Razeeman
teckwarz asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Could be a inconsistency between java required by the build tools and java set in the system. Version set in the Android Studio in the Settings - Build, execution, deployment - Build tools - Gradle should be 21.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@teckwarz
Comment options

Answer selected by teckwarz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants