问题描述
我正在将Android Studio用于SVN(通常在Windows PC上)上的项目.
I am using Android Studio for a project on SVN (usually on Windows PCs).
最近我想在Mac上运行它,它始终显示以下错误:
Lately I want to run this on a Mac, it keep giving the below error:
我已经将SDK放在了local.properties文件上,
I already put the SDK on local.properties file as:
我不知道为什么它会继续自动添加(D:\ Android \ sdk),这是我的Windows PC SDK目录,但是为什么现在在这里!代码上没有提及任何D:\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
.
推荐答案
右键单击您的项目,然后在"SDK位置"下选择打开模块设置",为您的SDK放置位置.
Right click your project and select 'Open Module Settings' under SDK Location put your location for your SDK.
粘贴到/Users/AhmadMusa/Library/Android/sdk
清理并重建项目
更新
尝试删除local.properties文件并创建一个新文件,但不要将其检入版本控制中.
Try to delete your local.properties file and create a new one, but do not check it into version control.
右键单击项目的顶层,然后创建新文件"local.properties"然后添加:sdk.dir=/Users/AhmadMusa/Library/Android/sdk
Right click top level of project and Create new file 'local.properties'then add: sdk.dir=/Users/AhmadMusa/Library/Android/sdk
清理并构建
这篇关于AndroidStudio SDK目录不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!