From 98d57a9a29bde23ccfaf501581bd8f2efd827728 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Wed, 10 Jan 2024 13:15:53 -0700 Subject: [PATCH] feat: Added support for Java 17 Fix issue: > 'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version. Seen when working with React Native 0.73 project Bumped compile sdk to 34 --- android/build.gradle | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index bdfb96053..53c042ce9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -66,15 +66,14 @@ afterEvaluate { } android { - compileSdkVersion safeExtGet("compileSdkVersion", 31) - + compileSdkVersion safeExtGet("compileSdkVersion", 34) compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = JavaVersion.VERSION_11.majorVersion + jvmTarget = JavaVersion.VERSION_17.majorVersion } defaultConfig {