Sreejith Sree
Sreejith Sree

Reputation: 3671

Xamarin forms android: Could not determine API level for $(TargetFrameworkVersion) of 'v8.1'

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?

Upvotes: 4

Views: 12326

Answers (2)

XTOO
XTOO

Reputation: 33

Just go to options and then general

enter image description here

then select appropriate target version

Upvotes: 0

Brandon Minnick
Brandon Minnick

Reputation: 15342

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

Upvotes: 1

Related Questions