遇到Could not locate Android SDK的解决方法!

这几天在公司试了一下mono for android

在家编译就老报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.
posted @ 2011-04-13 15:31 petersun 阅读(...) 评论(...) 编辑 收藏