diff --git a/android/capacitor/build.gradle b/android/capacitor/build.gradle index 3cfad89498..b96b05a52d 100644 --- a/android/capacitor/build.gradle +++ b/android/capacitor/build.gradle @@ -47,8 +47,8 @@ android { warningsAsErrors true } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } } diff --git a/capacitor-cordova-android-plugins/build.gradle b/capacitor-cordova-android-plugins/build.gradle index ee3cd76e5a..3fbe9797f6 100644 --- a/capacitor-cordova-android-plugins/build.gradle +++ b/capacitor-cordova-android-plugins/build.gradle @@ -27,8 +27,8 @@ android { abortOnError false } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } } diff --git a/cli/src/android/update.ts b/cli/src/android/update.ts index 6978ac8cc0..262b66352c 100644 --- a/cli/src/android/update.ts +++ b/cli/src/android/update.ts @@ -254,8 +254,8 @@ project(':${getGradlePackageName( android { compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } }