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:
Go to File->New->Import Module then browse you project. After importing module go to project structure and add module dependency to your project.
Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.
Import
project instead of Open
project
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With