maheshj01 / navbar_router

A Navbar widget for advanced usecases to improve user experience and save your time.
https://docs.maheshjamdade.com/navbar_router/
MIT License
29 stars 7 forks source link

Incompatible Kotlin Version #50

Closed bebaoboy closed 4 months ago

bebaoboy commented 4 months ago

To Reproduce

Cloning main branch then run the example app and see error.

Describe the bug

Version: Flutter 3.22.0
<details open>
  <summary>Flutter Doctor</summary>
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.26120.961],
    locale en-US)
    • Flutter version 3.22.2 on channel stable at C:\scr\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (5 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version
    10 or higher)

Checking Android licenses is taking an unexpectedly long time.                                                              
[√] Android toolchain - develop for Android devices (Android
    SDK version 34.0.0)
    • Android SDK at C:\Users\HMBAO\AppData\Local\Android\Sdk 
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\HMBAO\AppData\Local\Android\Sdk 
    • Java binary at: C:\Program Files\Android\Android        
      Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build
      17.0.11+0--11852314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program
      Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio
    Community 2022 17.10.3)
    • Visual Studio at C:\Program Files\Microsoft Visual      
      Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.35013.160    

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android      
      Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter      
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.11+0--11852314)

[√] VS Code (version 1.91.0)
    • VS Code at
      C:\Users\HMBAO\AppData\Local\Programs\Microsoft VS Code 
    • Flutter extension version 3.92.0

[√] Connected device (4 available)
    • 21081111RG (mobile) • 192.168.2.4:37973 • android-arm64 
      • Android 14 (API 34)
    • Windows (desktop)   • windows           • windows-x64   
      • Microsoft Windows [Version 10.0.26120.961]
    • Chrome (web)        • chrome            • web-javascript
      • Google Chrome 125.0.6422.60
    • Edge (web)          • edge              • web-javascript
      • Microsoft Edge 127.0.2651.31

[√] Network resources
    • All expected network resources are available.


Error

Full log ``` > Launching lib\main.dart on phone in debug mode... > You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply > > You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply > > e: C:/Users/HMBAO/.gradle/caches/transforms-3/37865fb99fa1fb60cf850910df4bb8bf/transformed/jetified-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. > e: C:/Users/HMBAO/.gradle/caches/transforms-3/90743e4880f494e80265cab0c2cb7133/transformed/core-1.10.1-api.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/HMBAO/.gradle/caches/transforms-3/ed8e633700fbda5f13279e2da1611347/transformed/jetified-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/HMBAO/.gradle/caches/transforms-3/ed8e633700fbda5f13279e2da1611347/transformed/jetified-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/HMBAO/.gradle/caches/transforms-3/ed8e633700fbda5f13279e2da1611347/transformed/jetified-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. > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':app:compileDebugKotlin'. > > Compilation error. See log for more details > > * Try: > > Run with --stacktrace option to get the stack trace. > > Run with --info or --debug option to get more log output. > > Run with --scan to get full insights. > > * Get more help at https://help.gradle.org > > BUILD FAILED in 20s > > ┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐ > │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ > │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ > │ update D:\Flutter\navbar_router\example\android\build.gradle: │ > │ ext.kotlin_version = '' │ > └────────────────────────────────────────────────────────────────────────────────────────────┘ > Error: Gradle task assembleDebug failed with exit code 1 > > > Exited (1).

image

Possible Solution

Change ext.kotlin_version from 1.6.10 to 1.8.0. Error gone!

maheshj01 commented 4 months ago

Fixed and released in v0.7.5