0

I am using Android Studio 3.0.1 with default gradle version 4.1 on windows but every time I start new project I have to change gradle home path as following image

use local gradle distribution

my question is how I can make this path the default path for all new project

MMG
  • 2,962
  • 5
  • 8
  • 35
Ben Ghaleb
  • 355
  • 2
  • 7
  • 18

1 Answers1

1

fixed with follwing steps

This usually happens when something goes wrong in Android Studio's first launch (eg. system crash, connection loss or whatever).

To resolve this issue close Android Studio and delete the following directory's content, necessary files will be downloaded on IDE's next launch.

macOS: ~/.gradle/wrapper/dists

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

While downloading Gradle manually works, I recommend letting Android Studio itself to do it.

got the answer from here Error:Failed to open zip file. Gradle's dependency cache may be corrupt

Ben Ghaleb
  • 355
  • 2
  • 7
  • 18