until they update the plugin, the following worked for me:
open node_modules/@capacitor/inappbrowser/android/build.gradle
and update or add this
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions { jvmTarget = 17 }
ps: I had the same problem with barcode-scanner too