ionic-team / ionic-team/capacitor-google-maps
Grade Compile error - Unknown Kotlin JVM target: 21
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
## Bug Report
### Capacitor Version
```
Capacitor Doctor
Latest Dependencies:
@capacitor/cli: 6.1.1
@capacitor/core: 6.1.1
@capacitor/android: 6.1.1
@capacitor/ios: 6.1.1
Installed Dependencies:
@capacitor/cli: 6.0.0
@capacitor/android: 6.0.0
@capacitor/core: 6.0.0
@capacitor/ios: 6.0.0
[success] Android looking great! 👌
[error] Xcode is not installed
```
### Platform(s)
Android
### Current Behavior
Installed latest version of google maps (with npm install @capacitor/google-maps@next) so i can run it on Capacitor 6, but im unable to compile for android, i always get the error:
Could not determine the dependencies of task ':capacitor-google-maps:compileDebugKotlin'.
> Unknown Kotlin JVM target: 21
npm run start works normally and i can use the map on web.
### Expected Behavior
To compile normaly.
### Code Reproduction
Just install the latest capacitor-google-maps with
npm install @capacitor/google-maps@next
### Other Technical Details
java --version
```
java 22.0.1 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
```
Gradle --version
```
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------
Build time: 2024-03-22 15:52:46 UTC
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin: 1.9.22
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.2 (Oracle Corporation 21.0.2+13-LTS-58)
OS: Windows 11 10.0 amd64
```
variables.gradle
```
ext {
minSdkVersion = 22
compileSdkVersion = 34
targetSdkVersion = 34
androidxActivityVersion = '1.8.0'
androidxAppCompatVersion = '1.6.1'
androidxCoordinatorLayoutVersion = '1.2.0'
androidxCoreVersion = '1.12.0'
androidxFragmentVersion = '1.6.2'
coreSplashScreenVersion = '1.0.1'
androidxWebkitVersion = '1.9.0'
junitVersion = '4.13.2'
androidxJunitVersion = '1.1.5'
androidxEspressoCoreVersion = '3.5.1'
cordovaAndroidVersion = '10.1.1'
}
```
gradle-wrapper.properties
```
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
```
Thanks for your help
Contributor guide
Assessment
This issue has not been assessed yet.