[Solved] "unable to merge android manifests" error

Been trying to add IAP to my game for the first time, and I’ve imported the plugins folder for it- but when I try to build the project, I get an “unable to merge android manifests” error. Apparently, my library uses the target SDK of 24, but my main manifest has the target SDK of 23. Trouble is, I don’t know how to edit that. I couldn’t find the setting in unity’s player settings, and I tried editing the manifest file directly only to have it overwritten whenever I tried to build the game. When searching online, people have been referencing an “android” folder under assets>plugins, but that folder isn’t there.

What am I doing wrong? How can I change that target SDK?

In the editor, you can go to the Player Settings/Settings for Android. There you can set Min API Level and Target API Level.

3 Likes

I’ve tried that, but there’s no option for target API level, and the min API level seems to have no effect on the targetSDKversion.

It occurs to me that it’s probably a problem that my version of Unity doesn’t have an option for target API level. To show that it is missing and that I’m not just having trouble finding it, I’ll post a screenshot.

What version of Unity are you using?

5.4.0f3 personal

I might encourage you to test with a more recent version of Unity, if that is possible for you. You can install two versions on the same system, just install into separate directories.

Huh, ok, looks like that option’s there in the newer version. I still have my work cut out for me to figure this out, but I think I’m on the right track, thanks!

Also, this may help Android Unable to merge android manifest Error - Questions & Answers - Unity Discussions