错误显示
SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project’s local properties file at ‘D:\AndroidStudio\ProviderTest\local.properties’.
原因
local.properties里面路径错了
解决
在local.properties里面最后一行找到
sdk.dir=D:\Androidsdk
改成自己电脑里正确sdk位置就可以成功运行了