MapWithOverlaysActivity - Could not determine $(TargetFrameworkVersion)

此生再无相见时 提交于 2020-01-03 13:33:19

问题


I have downloaded Xamarin Studio and am trying to use the MapsAndLocationDemo3 sample with the MapWithOverlaysActivity project.

I am getting the following error:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error XA0000: Could not determine $(TargetFrameworkVersion) for API level '19.' (XA0000) (SimpleMapDemo)

In the Android SDK Manager I have installed all the options for Android 4.4 (API 19) as well as the Google Play services.

Can I please have some help to get this sample working?

Thanks


回答1:


Hopefully you've figured this out by now since it was posted quite some time ago.

I had this issue this evening. I was able to resolve it by opening the .csproj file in something like Notepad++, changing AndroidUseLatestPlatformSdk from True to False, and rebuilding. If your issue is the same, hopefully this will help.




回答2:


Uninstalling my existing Xamarin.Android and reinstalling the latest fixed the this issue for me




回答3:


Ensure that you have the correct version of the SDK installed.

In Xamarin Studio, go to the project options and click on General. The Target framework field should show the version of the SDK that will be used to build the project.

If the SDK is not installed, the field will have something like Android X.Y (not installed). From Xamarin Studio go to Tool > Open Android SDK Manager and make sure that you installed the required SDK.



来源:https://stackoverflow.com/questions/20650843/mapwithoverlaysactivity-could-not-determine-targetframeworkversion

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