Gradle Project Sync failed in Android Studio 2.3.1

前端 未结 3 1904
北荒
北荒 2021-01-29 07:38

Upon reopening Android Studio after an improper shutdown, my gradle project sync failed and many errors like: \"Failed to resolve: junit:junit:4.12\" started showing up in the E

3条回答
  •  悲哀的现实
    2021-01-29 07:57

    From your first screenshot

    Gradle is in offline mode, which means that it won't go to the network to resolve dependencies.

    Go to Preferences > Gradle and uncheck "Offline work".

    After that try cleaning the project and Re-running again?

提交回复
热议问题