Android Studio: Re-download dependencies and sync project

前端 未结 15 2106
孤街浪徒
孤街浪徒 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:29

    change the gradle-wraper-properties distributionUrl to your local downloaded gradle such as

    distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip

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

    If you want to use the new features, you should not revert it to the old version, just delete the directory ~/.gradle recursively, then restart Android Studio.

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

    Well, It's a bit late, but usually happens when something went wrong in Android Studio's initial launch (eg. system crash, connection loss or whatever). We can call it bad programming or lazy QA.

    To fix this close Android Studio and delete everything from the following directory. Don't worry files will be downloaded on next launch.

    For Windows: C:\Users\your-username.gradle\wrapper\dists

    For Linux: ~/.gradle/wrapper/dists

    For mac: ~/.gradle/wrapper/dists

    You can also Gradle manually to fix this issue, But it's better to let Android studio does this work. .

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

    May be incompatible with Gradle and maven version delete project dir/gradle/wrapper put a right version gradle into it run again

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

    This worked for me - go to https://gradle.org/releases/ and download latest stable version (binary-only works fine). extract and insert into C:\Users\OWNER\.gradle\wrapper\dists folder. Open Android Studio settings > Build, Execution, Deployment > Gradle, use gradle from: specific location.

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

    I was also facing the same issue. The solution worked for me was go to "gradle\wrapper\dists" and deleted the folder "grade-4.10.1-all" folder and downloaded the same version after that i pasted the extracted folder in same address.After that I again synchronized the android studio. I worked for me.

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