方法一:(可以)
下载android sdk的安装包,并安装,同时需要安装java jdk 6
方法二:(没成功过)
在家编译就老报Could not locate Android SDK?最后在Monodroid Subscribers里面找到了答案!先记下,晚上回家试试!
我的android-sdk-windows不是默认安装,安装到D盘了!
I had the same build problem “could not find android sdk” and figured out the problem.
It looks like the ResolveSDK task which resolves the
Android
SDK directory is currently hardcoded to the %ProgramFiles(x86)%\
Android directory. This is
not where my
Android
SDK is installed. To temporarily fix this on my machine I created a symbolic link from my existing
SDK directory to the location where monodroid was expecting it to be.
The commands I used to do this on my machine look like:
>mkdir “%ProgramFiles(x86)%\
Android“
>mklink /D “%ProgramFiles(x86)%\
Android\
android-
sdk-windows” “<Your actual install directory>\
android-
sdk-
windows”
(Note: You need to do this in a command prompt running as administrator)
Hope this helps others.