Launching lib\main.dart on LS 5016 in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

BUILD FAILED in 27m 34s Finished with error: Gradle task assembleDebug failed with exit code 1

1

There are 1 best solutions below

0
On

When I encounter Could not resolve all artifacts for configuration ':classpath', I usually invalidate cache , restart, clean and rebuild project. Strangely, the problem is solved just like that.

Anyway, if you want to add more dependencies, you can choose File > Project Structure > Dependencies.

Hope it help!