diff --git a/README.md b/README.md index ea4adaed5..7dc745ef8 100644 --- a/README.md +++ b/README.md @@ -28,13 +28,6 @@ If you do not have an IDE, from step 5, you'll instead: 2. Launch an emulator: `fvm flutter emulators --launch Pixel_2_API_30` 3. `fvm flutter run` -If you get the `Unknown Kotlin JVM target: 21` error while trying to build the app, you probably have wrong JDK version. - -Install JDK 17 and update flutter config to point to this JDK: -```bash -fvm flutter config --jdk-dir -``` - ### Host-specific instructions: Ubuntu and similar To install FVM on Ubuntu, try something like: diff --git a/android/buildSrc/build.gradle.kts b/android/buildSrc/build.gradle.kts index 7b6853c10..67897f605 100644 --- a/android/buildSrc/build.gradle.kts +++ b/android/buildSrc/build.gradle.kts @@ -4,4 +4,8 @@ plugins { repositories { mavenCentral() +} + +kotlin { + jvmToolchain(17) } \ No newline at end of file