SDK Location not found Android Studio + Gradle

后端 未结 13 2257
北荒
北荒 2020-12-08 04:09

I have seen this same thing posted quite a few times, but whenever I try to import my project to my new work laptop I keep getting this error.

I have pulled the proj

13条回答
  •  执笔经年
    2020-12-08 04:41

    creating local.properties file in the root directory solved my issue I somehow lost this file after pulling from GitHub

    this is how my local.properties file looks like now:

    ## This file is automatically generated by Android Studio.
    # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
    #
    # This file must *NOT* be checked into Version Control Systems,
    # as it contains information specific to your local configuration.
    #
    # Location of the SDK. This is only used by Gradle.
    # For customization when using a Version Control System, please read the
    # header note.
    #Sat Feb 06 11:53:03 EST 2016
    
    sdk.dir=/Users/****/Library/Android/sdk
    

提交回复
热议问题