Platform 'Android' referenced in the project file 'san-angeles' cannot be found

喜你入骨 提交于 2019-12-11 09:55:44

问题


i was trying to run the "San-angeles" example of Visual Studio 2010 and Android so when i double-clicked the .sln file i got 2 warnings :

1) C:\vs-android_samples\san-angeles\san-angeles.vcxproj : warning : Platform 'Android' referenced in the project file 'san-angeles' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\Android'.

2) C:\vs-android_samples\san-angeles\san-angeles.vcxproj : error : Platform 'Android' referenced in the project file 'san-angeles' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\Android'. The project cannot be loaded.

and nothing is loaded ....

i have :

  • VS 2010 - c:/program files
  • Android ndk r7 - c:/
  • apache ant 1.8.2 - c:/
  • Android Samples "San-Angeles" - c:/

am i missing something here ?!!


回答1:


am i missing something here ?!!

Yes, you're missing the error which explains where it's looking for the vcxproj file...

Please make sure you have it installed under '%VCTargetsPath%\Platforms\Android'.

It seems you have two choices - either change the location of the "San-Angeles" example to match whatever path the %VCTargetsPath% envar is set to or change that envar to point at the path where you have the sample installed.



来源:https://stackoverflow.com/questions/8811056/platform-android-referenced-in-the-project-file-san-angeles-cannot-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!