0
votes

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
do you have internet connection?try again with internet and tell me if it works - Haidar Mehsen
Are you running any proxy within Android Studio ? - Lubos Mudrak

1 Answers

0
votes

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!