'How i can reapirt problem in new flutter project
When i create new flutter project and click run i have this problem
"Could not initialize class com.android.sdklib.repository.AndroidSdkHandler"
Flutter doctor enter image description here
Solution 1:[1]
Run this in the console: flutter clean
Solution 2:[2]
go to Android/build.gradle.
if jCenter() exist try this change:
buildscript { ext.kotlin_version = '1.3.50' repositories { google() jCenter() // change this to mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jCenter() // change this to mavenCentral() } }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | General Grievance |
Solution 2 | Wai Ha Lee |