首页 文章

SDK位置未找到 - Android Studio

提问于
浏览
-2

编译项目时出现此错误: Error: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. This is a screenshoot of the error

我该如何解决? SDK位置很好 . 问题是我不是什么是ANDROID_HOME环境变量 .

1 回答

  • 0

    如果您使用的是Windows:

    Go to My Computer -> System Properties -> Advanced System Settings -> Environment Variables
    

    添加变量ANDROID_HOME作为变量名称,并将sdk路径添加为其值 .

    希望这可以帮助 .

相关问题