• 18-08-2024, 10:14:53
    #1
    Merhaba build alırken uyarı mesajları alıyorum.

    Uygulamam sorunsuz çalışıyor hem gerçek bir cihazda hemde test ortamında sanal cihazlarda denedim.

    Fakat bu mesajları ne kadar araştırırsam araştırayım çözemedim. Kullandığım bağımlılıklardaki kotlin uyuşmazlığından kaynaklanıyor sanırım.

    İlk build alındığında bu hata mesajlarını veriyor. Eğer ilk buildin üzerine bir build alırsam bu hata mesajları kayboluyor.

    Sorunu çözmek için yaptıklarım

    -flutter clean ile temizledim
    -flutter pub get ile bağımlılıkları yeniden yükledim
    -./gradlew/caches klasörünü hem manuel hemde terminal komutları ile temizledim ve yeniden build aldım

    Fakat sorunu çözemedim. Yardımcı olabilecek arkadaşlar ulaşırsa sevinirim.

    C:\src\flutter\bin\flutter.bat --no-color build apk Running Gradle task 'assembleRelease'...                        e: C:/Users/ibrah/.gradle/caches/transforms-3/2028b4852427758c4fbb739f606834ba/transformed/fragment-1.7.1/jars/classes.jar!/META-INF/fragment_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/84bcd7712cd1cda8e07a2fb18b0d524b/transformed/jetified-activity-1.8.1/jars/classes.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/18a58a85cba546e5729bd5ba31a419d0/transformed/jetified-lifecycle-livedata-core-ktx-2.7.0/jars/classes.jar!/META-INF/lifecycle-livedata-core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/4af9b436c8d4bb3ac0b3274d04585f86/transformed/lifecycle-livedata-2.7.0/jars/classes.jar!/META-INF/lifecycle-livedata_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/e43fe3b2c3037a38bc32575c11027940/transformed/lifecycle-viewmodel-2.7.0/jars/classes.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/2fdfa8cf657a65b304a05f231cce51fc/transformed/lifecycle-livedata-core-2.7.0/jars/classes.jar!/META-INF/lifecycle-livedata-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/c90a242a1eafef606d859c43e324d4f3/transformed/jetified-lifecycle-viewmodel-savedstate-2.7.0/jars/classes.jar!/META-INF/lifecycle-viewmodel-savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/7f15c5c6296f001b3eef622038282316/transformed/jetified-core-ktx-1.13.1/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/74fdd5d45ccc69185de81d537e22b382/transformed/core-1.13.1/jars/classes.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/fe7139905964a329253d6661fb1d56e7/transformed/lifecycle-runtime-2.7.0/jars/classes.jar!/META-INF/lifecycle-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/c8db5386e99ae1d483388d79f9dae4f3/transformed/jetified-lifecycle-process-2.7.0/jars/classes.jar!/META-INF/lifecycle-process_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.7.0/85334205d65cca70ed0109c3acbd29e22a2d9cb1/lifecycle-common-2.7.0.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/e9cace47b8ea57141297c228b3e5fece/transformed/jetified-window-java-1.2.0/jars/classes.jar!/META-INF/window-java_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/5e7265ae98555023f7e5597aaa11b834/transformed/jetified-window-1.2.0/jars/classes.jar!/META-INF/window_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.7.1/63a0779cf668e2a47d13fda7c3b0c4f8dc7762f4/kotlinx-coroutines-core-jvm-1.7.1.jar!/META-INF/kotlinx-coroutines-core.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-android/1.7.1/c2d86b569f10b7fc7e28d3f50c0eed97897d77a7/kotlinx-coroutines-android-1.7.1.jar!/META-INF/kotlinx-coroutines-android.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/transforms-3/21f96e371f5bf60a2aeb9c5b28f80f6c/transformed/jetified-savedstate-1.2.1/jars/classes.jar!/META-INF/savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: C:/Users/ibrah/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.8.22/1a8e3601703ae14bb58757ea6b2d8e8e5935a586/kotlin-stdlib-common-1.8.22.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. Running Gradle task 'assembleRelease'...                           35,7s √ Built build\app\outputs\flutter-apk\app-release.apk (17.9MB) Process finished with exit code 0
  • 18-08-2024, 10:17:45
    #2
    bunlar sorun değil. flutterın beklediğinden daha üst versiyon paket kullanıyorsunuz. hatta iyi bişey bu.
  • 18-08-2024, 10:36:05
    #3
    Build gradle /proje dosyasını açın hocam kotlin versiyonunu 1.8. 0 yapın sizinki 1.6.0 sanırım
  • 18-08-2024, 10:52:03
    #4
    bycida adlı üyeden alıntı: mesajı görüntüle
    Build gradle /proje dosyasını açın hocam kotlin versiyonunu 1.8. 0 yapın sizinki 1.6.0 sanırım
    1.9.0 benimki hocam.
  • 18-08-2024, 10:54:41
    #5
    1.6.0 kullanılıyor 1.8.0 istiyor o zaman gradle sürümünü ya düşürün yada yükseltin
  • 18-08-2024, 13:32:08
    #6
    Benim flutter e başlarken karşılaştığım ve 4 günde çözdüğüm sorun. 10 tane çözümü var ve hepsini yapman gerekiyor kardeşim. Flutter ı direk bir dosyadan url olarak çekip tüm sürümleri doğru yapman lazım.
  • 21-08-2024, 20:43:55
    #7
    hayır hocam tek çözümü target sdk, ve compile sdk sürümünüzü yükseltmek, zaten bu ayın sonunda zorunlu hale gelecek, api 34 yapmanız gerekmekte