1
votes

Getting following error when rebuilding xamarin forms android project.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error XA0000: Could not determine API level for $(TargetFrameworkVersion) of 'v8.1'. (XA0000) (Myproject.Android)

Found the same issue in some other threads. The solution on there is open .csproj file and change AndroidUseLatestPlatformSdk from True to False, and rebuild. I found this solution on here and here.

But I don't know which .csproj file need to modify? Can some one tell it more clearly?

1

1 Answers

3
votes

You'll want to edit Myproject.Android.csproj.

Here's how to edit a csproj in Visual Studio:

Visual Studio for Mac

Visual Studio for Mac

Visual Studio on PC

1. Unload the Project

enter image description here

2. Edit the File

enter image description here

3. Reload the Project

enter image description here