欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID

程序员文章站 2022-12-29 09:53:50
如题: sdk location not found. define location with sdk.dir in the local.properties file or with an an...

如题:
sdk location not found. define location with sdk.dir in the local.properties file or with an android_home environment variable.
consult ide log for more details (help | show log)

1。首先检查自己是不是没有设置sdk
看看打开local.properties 里面是不是设置了sdk.dir=sdk路径
有时候,别人的代码,clone 下来,可能因为这个原因运行不了

2。 不行?
重启stadio. 不要以为stadio 什么bug 都没有。
重启一下,刷新了。可以运行了。有时候,不要跟重启过不去,该重启重启。不要因为别人的bug,
浪费时间。