AndroidStudio SDK directory does not exists

I am using Android Studio for a project on SVN (usually on Windows PCs).

Lately I want to run this on a Mac, it keep giving the below error:

  • how to set only numeric value for edittext in android?
  • Which activity method is called when orientation changes occur?
  • Retrofit and Centralized Error Handling
  • Android : Get notification when user enter in specific location
  • read file from assets
  • Access google plus client from multiple activities
  • Error:The SDK directory ‘/Users/AhmadMusa/Desktop/[PROJECT PATH]/D:\Android\sdk‘ does not exist.
    Please fix the ‘sdk.dir’ property in the local.properties file.

    I already put the SDK on local.properties file as:

    sdk.dir=/Users/AhmadMusa/Library/Android/sdk

    I don’t know why it keep adding the (D:\Android\sdk) automatically, this is my Windows PC SDK directory, but why it is here now! nothing on code mention any D:\Android\sdk.

  • Access host from Genymotion emulator
  • Can Activity.getIntent() ever return null?
  • Example using Androids lrucache
  • setExactAndAllowWhileIdle - is not exact as of developer reference
  • automatically solve Android build Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge
  • Android Themes: Define colors/gradients in “baseTheme.xml”, use within controls, override in “subThemeX.xml”
  • 6 Solutions collect form web for “AndroidStudio SDK directory does not exists”

    You cannot edit local.properties it is a generated file, right click your project and select ‘Open Module Settings’ under SDK Location put your location for your SDK.

    paste in /Users/AhmadMusa/Library/Android/sdk

    Clean and rebuild your project

    Update

    Try to delete your local.properties file and create a new one, but do not check it into version control.

    Right click top level of project and Create new file ‘local.properties’
    then add: sdk.dir=/Users/AhmadMusa/Library/Android/sdk

    Clean and build

    From Android Studio 1.0.1

    Go to

    File -> project Structure into Project Structure
    Left -> SDK Location
    SDK location select Android SDK location (old version use Press +, add another sdk)
    Change the sdk path to /Users/AhmadMusa/Library/Android/sdk

    This is a problem when you open the project incorrectly. open the project do not import the project

    I think you should go to:

    File ->Project Structure->SDK Location->

    there select your sdk location.

    Checkout your SDK manager in Android studio, if you have partially installed sdk. Install SDK completely and try running your code.

    Just open your local.property file

    if your project is used in mac before, so the sdk path will be something like
    sdk.dir=/Users/siddharthyadav/Library/Android/

    Now if you are trying to use that in windows so just edit and put your sdk location:
    Example:
    sdk.dir=D:\software\android-sdk\android-sdk

    Just clean and build. See it works!!!

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.