Android Studio: Re-download dependencies and sync project

前端 未结 15 2122
孤街浪徒
孤街浪徒 2020-12-01 18:23

I downloaded an open source game \"ChaseWhisplyProject\" source code from Github.

I imported the project in my Android Studio (Version 1.5.1).

It shows foll

15条回答
  •  萌比男神i
    2020-12-01 18:56

    First of all, open your gradle-wrapper.properties file from the project then note down the version of the Gradle.

    It could be like this:

    distributional=https\://services.gradle.org/distributions/gradle-6.5-bin.zip 
    

    So, here my Gradle version is 6.5. It could be different in your case.

    After this, open file explorer and open your project folder. There you will be having the Gradle folder open it, inside it the version will be mentioned of your previous Gradle.

    Now you will have to download the Gradle file according to the wrapper.properties(for example nothing but 6.5 version).

    You can download it from here

    • Extract it
    • paste it to the Gradle folder
    • open your project > file > settings > Build, Execution, Deployment > Gradle, then select the newly downloaded Gradle file in the Gradle user home.

    Then run your project.

提交回复
热议问题