Bug Report
Capacitor Version
3.1.5
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':capacitor-android:compileReleaseAidl'.
> Failed to find target with hash string '31' in: EXAMPLE

Platform(s)
Android
Current Behavior
The default project template and capacitor-cordovan-android-plugins try to read rootProject.ext.compileSdkVersion as integer directly, which only works for Gradle Groovy projects. Projects using Gradle Kotlin DSL won't have access to the ext plugin. The new mechanism is to put properties into gradle.properties. Those however, are always strings.
Expected Behavior
compileSDK, minSdk and targetSdk can be customized in Gradle Kotlin DSL projects.
Bug Report
Capacitor Version
3.1.5
Platform(s)
Android
Current Behavior
The default project template and capacitor-cordovan-android-plugins try to read rootProject.ext.compileSdkVersion as integer directly, which only works for Gradle Groovy projects. Projects using Gradle Kotlin DSL won't have access to the
extplugin. The new mechanism is to put properties intogradle.properties. Those however, are always strings.Expected Behavior
compileSDK,minSdkandtargetSdkcan be customized in Gradle Kotlin DSL projects.