anthony
anthony

Reputation: 7733

Android Studio: import project from Gradle

I want to import my android project (created with Android Studio there are 4 months ago) to my new laptop with Android Studio. So when I select the folder where my project is, a pop-up appears "Import project from Gradle" with different options; by default "Use local gradle distribution" is selected.

But I don't know how to get the Gradle home path on my laptop.

Env:

Upvotes: 14

Views: 52704

Answers (2)

apricot
apricot

Reputation: 3747

Import project instead of Open project

Screenshot

Upvotes: 52

athor
athor

Reputation: 6928

Do you have gradle installed? If not, following this guide will help.

Ideally you don't want to select the "Import project from Gradle" option though - you should be using the gradle wrapper created with the project. If there is no gradle wrapper, create a new project and copy the gradle wrapper across.

The gradle wrapper will download the correct gradle version for the project, and avoids the need to have gradle installed locally.

Upvotes: 16

Related Questions