Gradle Project Sync failed in Android Studio 2.3.1

前端 未结 3 1971
北荒
北荒 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:48

    Here is a working solution..

    Step 1) In Android Studio go to File > Project Structure

    there unticheck "Use Embedded JDK" and below choose your JDK location..

    Step 2)

    Go to file gradle > wrapper > gradle-wrapper-proparties change gradle version to 3.5-all

    Step 3) close the project and reopen

提交回复
热议问题