在flutter下增加了一些新的库(例如:fluttertoast: ^8.0.9),就会经常遇到Could not resolve all artifacts for configuration
Launching lib/main.dart on MI 8 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':wakelock'.
> Could not resolve all artifacts for configuration ':wakelock:classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31.
Required by:
project :wakelock > org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.5.31/kotlin-gradle-plugin-api-1.5.31.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin