简体   繁体   中英

Android Studio 1.4.1: Gradle Project Sync Failed

I imported a project created from Android Studio earlier version. I am running Android Studio 1.4.1.

I am getting following error message:

Error:The SDK directory '/media/delta/f2164b84-872f-493c-9d9f-8edf44dc4428/home/delta/Android/Sdk' does not exist.

Please fix the 'sdk.dir' property in the local.properties file.

Open File

The SDK directory it is referring to /media/delta/f2164b84-872f-493c-9d9f-8edf44dc4428/home/delta/Android/Sdk does not exist in my machine.

I tried all suggestion proposed by: Gradle Project Sync Failed - Android Studio

在此处输入图片说明

I change sdk.dir in local.properties file to actual sdk folder still does not work. Please help.

Go to

  1. File -> project Structure into Project Structure
  2. Left -> SDK Location
  3. SDK location select Android SDK location (old version use Press +, add another sdk)

Then sync project with gradle files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM