Mike McCloy
Mike McCloy

Reputation: 1

Emulator says device does not support the minimum SDK level but it should

For some reason today I am no longer able to deploy my Xamarin.Forms app to any android emulators. The emulators were working previously. The error I am seeing in the deployment pad is

"Mono.AndroidTools.SdkNotSupportedException: The device does not support the minimum SDK level specified in the manifest". 

It seems the answer to this is usually that the manifest is just not matching the SDK version of the emulator, however I've checked and I have it set to a minimum of 26 and target of 28. The emulators are on version 27. I tried setting both min/target to 27 as well, but same result.

I have a few theories as to what change may have happened.

  1. I recently began preparing the app for google play and I added a package name, where I didn't have one before.
  2. I changed the version number to 2 from 1. Also the version name is 2.
  3. Updating visual studio (mac)

Any ideas what else I should check?

Upvotes: 0

Views: 1215

Answers (1)

Jayendrasinh Rathod
Jayendrasinh Rathod

Reputation: 11

In case anyone else hits this issue, it was caused by a blank inside my Debug|Android configuration block in my csproj. It was created that way using the previous VS Mac IDE.

There is another AndroidManifest element inside my main PropertyGroup, so deleting the blank one (or adding the path to AndroidManifest.xml here) makes the initial error go away.

For additional details, refer to this solution

Upvotes: 1

Related Questions