Skip to content Skip to sidebar Skip to footer

How To Change Gradle\sdk Settings When Opening Android Studio Project From A Different Pc

I Copied my Android Studio project from my work PC and copied it to my home PC. When I opened the project I got the following error: Failed to import Gradle project: Could not fet

Solution 1:

I found a similar question in: Gradle build errors after updating Android Studio

in the local.properties file in the root of the project, change the sdk.dir value.

Solution 2:

For anyone else running into Gradle issues after updating Android Studio:

Go to File > Project Structure > Project.

My Gradle version and Android plug in version did not match, which was causing my issue. If you make a change here, make sure you also update your top-level Gradle file with the same version like so: classpath 'com.android.tools.build:gradle:some version number'

Post a Comment for "How To Change Gradle\sdk Settings When Opening Android Studio Project From A Different Pc"