diff --git a/android/capacitor/build.gradle b/android/capacitor/build.gradle index 3cfad8949..b96b05a52 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 ee3cd76e5..3fbe9797f 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 6978ac8cc..262b66352 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 } }