2

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
  • 3,226
  • 5
  • 16
  • 43
Ben Ghaleb
  • 463
  • 4
  • 9
  • 20

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
  • 463
  • 4
  • 9
  • 20
  • 2
    This is valid to fix download problems, but doesn't address the OP question: how to set a default Gradle location for new Android Studio projects. – Bernat Jan 21 '22 at 14:17