Android Studio: Re-download dependencies and sync project

前端 未结 15 2108
孤街浪徒
孤街浪徒 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条回答
  • 2020-12-01 18:55

    While importing a libGDX project I got the same message from Android Studio 2.2.

    Went to File->Project Structure then selected Project and set

    Gradle version

    and

    Android Plugin Version

    to values identical to another project I had recently created with Android Studio 2.2 and updated SDK. Could then sync gradle. Did Build->Build Clean with no issues. Then did Run->Clean and Rerun and project ran fine.

    Hope this helps.

    0 讨论(0)
  • 2020-12-01 18:55

    I solved this issue by this following steps

    1.C:\Users\System name.gradle\wrapper\

    2.Inside wrapper folder u will find grale file with some version, You just have to delete it

    3.Come/Go to android studio and Go to File->Sync project with Gradle Files.

    4.Android studio automatically download the require gradle file.

    5.And now go for coding

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题