skip to Main Content

I installed everything I needed following the instructions in https://docs.flutter.dev/get-started/install/windows. I believe that there is an error in the code, please tell me how to fix it?

buildscript {
    ext.kotlin_version = '1.6.10'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

2

Answers


  1. Chosen as BEST ANSWER

    Here is the solution: Change the version of qr_code_scanner in pubsec.yaml to 1.0.0!


  2. try update kotlin_version to 1.7.10

    and update com.android.tools.build:gradle to last varsion

    then

    flutter clean && flutter pub get
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search