Hi,
I am trying to build my Android App (Xamarin Forms 4.4) using App Center: this is the error I am getting:
error XA0000: Could not determine API level for $(TargetFrameworkVersion) of 'v8.1'
When I setup the build, I don't find listed version 8.1.. only 8.1.5 -- I am wondering what I am doing wrong?
In Project properties on Visual Studio I have set as target Android: v8.1 (API Level 27)
Additional to that, I added:
AndroidUseLatestPlatformSdk as False
in each of the csproj Property groups, as suggested in many forums.
Any help is much appreciated.
Try to set AndroidUseLatestPlatformSdk to true in the .csproj file.
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
Refer to:
https://developercommunity.visualstudio.com/content/problem/140330/could-not-determine-api-level-for-targetframeworkv.html
https://forums.xamarin.com/discussion/comment/356945/#Comment_356945
Answers
Try to set AndroidUseLatestPlatformSdk to true in the .csproj file.
Refer to:
https://developercommunity.visualstudio.com/content/problem/140330/could-not-determine-api-level-for-targetframeworkv.html
https://forums.xamarin.com/discussion/comment/356945/#Comment_356945
@Jarvan thank you for taking the time to answer my question. Now, I am getting this error:
this is my project definition, I guess it can help:
If youve sovled the issue, please mark the solution as the answer. It'll help others who face the similar problem.