Reputation: 95
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"
}
Upvotes: 1
Views: 4106
Reputation: 11
try update qr_code_scanner build file ,
targetSdkVersion 33,
compileSdkVersion 33,
Upvotes: 0
Reputation: 95
Here is the solution: Change the version of qr_code_scanner in pubsec.yaml to 1.0.0!
Upvotes: 5
Reputation: 376
try update kotlin_version to 1.7.10
and update com.android.tools.build:gradle to last varsion
then
flutter clean && flutter pub get
Upvotes: 3