DEV Community

Cover image for Flutter Uygulamasında Kotlin Versiyonunu Güncelleme
Gülsen Keskin
Gülsen Keskin

Posted on

2

Flutter Uygulamasında Kotlin Versiyonunu Güncelleme

Android platformunda bir Flutter uygulaması oluşturmak için Kotlin versiyonunun 1.5.31 veya üstü olması gerekir.

Uygulamanız daha düşük bir sürüm kullanıyorsa aşağıdaki hata mesajını alırsınız:


┌─ Flutter Fix ────────────────────────────────────────────────────────────┐
│                                                                          │
│ [!] Your project requires a newer version of the Kotlin Gradle plugin.   │
│ Find the latest version on                                               │
│ https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update │
│ <path-to-app>/android/build.gradle:                                      │
│ ext.kotlin_version = '<latest-version>'                                  │
│                                                                          │
└──────────────────────────────────────────────────────────────────────────┘


Enter fullscreen mode Exit fullscreen mode

<app-src>/android/build.gradle'ı açın ve ext.kotlin_version'u değiştirin:

buildscript {
-    ext.kotlin_version = '1.3.50'
+    ext.kotlin_version = '1.5.31'

Enter fullscreen mode Exit fullscreen mode

resource

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs