Skip to content

Commit ce64112

Browse files
authored
Merge pull request #314 from NWuensche/master
Fix Java 21 issue
2 parents d66eac3 + c7cbf76 commit ce64112

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ If you do not have an IDE, from step 5, you'll instead:
2828
2. Launch an emulator: `fvm flutter emulators --launch Pixel_2_API_30`
2929
3. `fvm flutter run`
3030
31-
If you get the `Unknown Kotlin JVM target: 21` error while trying to build the app, you probably have wrong JDK version.
32-
33-
Install JDK 17 and update flutter config to point to this JDK:
34-
```bash
35-
fvm flutter config --jdk-dir <path-to-jdk-17>
36-
```
37-
3831
### Host-specific instructions: Ubuntu and similar
3932
4033
To install FVM on Ubuntu, try something like:

android/buildSrc/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ plugins {
44

55
repositories {
66
mavenCentral()
7+
}
8+
9+
kotlin {
10+
jvmToolchain(17)
711
}

0 commit comments

Comments
 (0)