Flutter ์˜ค๋ฅ˜

Flutter Execution failed for task ':app:lintVitalRelease'.> Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath'.

๋ฐ๋ถ€์žฅ 2023. 1. 6. 01:13

Error Message

 

Execution failed for task ':app:lintVitalRelease'.

> Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath'.


Solution

 

1. android/gradle/wrapper/gradle-wrapper.properties update your distributionUrl to

distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

 

2. in android/build.gradle change the gradle version to at least 7.1.2

classpath 'com.android.tools.build:gradle:7.1.2