Problem with the Min API version

Hi everyone,

Before I start I just want to say that I have looked through other similar questions and have seen the answers there. I am getting the errors at the bottom.

I know that I need to change the value in the player settings and I have done this but the error still persists.
2925701--216231--upload_2017-1-18_17-42-23.png

I have also tried changing the main manifest file,but this is recreated every time I build, and even setting the API to 20 so I am not sure what to do now.

I have just updated from unity 5.4 to 5.5.

Thanks in advance.

The erros:

Error: [Temp\StagingArea\AndroidManifest-main.xml:3, C:\Users\mmcdo\Documents\Coding\Unity\Space Shooter\SpaceShooter\Temp\StagingArea\android-libraries\Heyzap\AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘10’

UnityEditor.HostView:OnGUI()

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“C:/Users/mmcdo/AppData/Local/Android/sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:3, C:\Users\mmcdo\Documents\Coding\Unity\Space Shooter\SpaceShooter\Temp\StagingArea\android-libraries\Heyzap\AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion=‘10’
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\mmcdo\Documents\Coding\Unity\Space Shooter\SpaceShooter\Temp\StagingArea\android-libraries\MainLibProj\AndroidManifest.xml:13] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\mmcdo\Documents\Coding\Unity\Space Shooter\SpaceShooter\Temp\StagingArea\android-libraries\play-services-basement-10.0.1\AndroidManifest.xml:5] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[ ] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[ ] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()

I’m guessing you might have another plugin that is requiring the lower sdk version, or you might just have some files cached? Here’s an experiment - create an empty project, export to android and check the androidmanifest in the staging area for the project. Change the min API level in the player settings, export again, and the androidmanifest in the staging area should now have the new min sdk version set properly.

If this is the case, add just the Heyzap plugin to your empty project and try and make it work. Then check for the requirements for other libraries.

Same issue here, also tried all the other suggestions.

Error: [Temp/StagingArea/AndroidManifest-main.xml:3, …/Temp/StagingArea/android-libraries/animated-vector-drawable-23.4.0/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘11’

Error: [Temp/StagingArea/AndroidManifest-main.xml:3, …/Temp/StagingArea/android-libraries/customtabs-23.4.0/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘15’

Error: [Temp/StagingArea/AndroidManifest-main.xml:3, …/Temp/StagingArea/android-libraries/facebook-android-sdk-4.17.0/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘15’

Error: [Temp/StagingArea/AndroidManifest-main.xml:3, …/Temp/StagingArea/android-libraries/facebook-android-wrapper-7.9.0/AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘15’

Unity 5.5.1f

Project settings:
2953208--219052--Screen Shot 2017-02-09 at 8.34.54 pm.png

Plugins:
GamesSparks 5.5.1 198
Facebook 7.9.0
Chartboost 6.6.1
UnityAds 2.0.8
UnityIAP (Services)
UnityAnalytics (Services)