This is the plugin I’m using and have done all the required setup including setting up and downloading all the required SDKs:
Error come while building the project.
This is the plugin I’m using and have done all the required setup including setting up and downloading all the required SDKs:
Error come while building the project.
Me too. I installed this package and now I have the error Unable to merge android manifests. In the console shows this:
Error: [AndroidManifest-main.xml:8, AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘9’
I’m not know what to do.
edit:
The issue is solved for me. Search for archives with the name manifest in your Assets folder. Open these files and you need to have the same number in minSdkVersion for all files and the same number for targetSdkVersion for all files.
Hi! @rjr I had the same issue with Facebook sdk version: 7.1.0. Add this line with angle brackets:
uses-sdk android:minSdkVersion=“15” android:targetSdkVersion=“23” /
between “/application” and “/manifest” lines
in the android manifest file in the project > plugins folder.
It fixed the issue for me.
I got solution from this problem because of generated console file.
First my project contains already other plugins so I have already one main manifest file.
After adding GooglePlayGamesPlugin it creates other android manifest file in that they specify necessary detail of using Google Play Services.
So as a result both android manifest file contain same details so I commented out my old manifest file code related to console detail.
Now I have no errors related to Unable to merge android manifests.
Here I post my personal experience related to this bug, it might possible other developer solve it differently.
I found out…
the menu is moved to Window → Google Play Games → setup…
If you build without setup… you will keep getting the error…
please setup this 1st…
took 2Hr + to debug this…
The way I solved this was pretty simple.
I have solved the problem by changing the minimum API level. That is in Project Settings>Player Settings>Other Settings.
Change the minimum API level to the required one.
I’m having the same problem now, but the answer above doesn’t make much sense. Can anyone help?
Error: [Temp\StagingArea\AndroidManifest-main.xml:24, E:\UNITY\Unity Projects\2015\PullMe\Temp\StagingArea\android-libraries\facebook-android-sdk-4.6.0\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion=‘15’
I have gone though some solutions, even after modifying in android manifest file, it gives the same error, unity will build the manifest file and revert all the changes what i have done
Changing API level in player setting solved the problem.
Minimal API level need to be changed as the console error value.
One of the common answers I’ve seen for this problem is modifying manifest XML files with hardcoded XML files, but I found that didn’t help me much as the AndroidManifest.xml file that comes with the Facebook package didn’t have those properties hardcoded.
What I ended up finding is that once I opened up the Android SDK manager and downloading/installing local SDK versions that had been referenced in the error messages that this problem went away and I could build without errors. I would ensure this is done prior to going down the rabbit hole of manually modifying manifest files .
after i added your line of code, i got this:
Plugin Bundle ID conflict detected!
Package com.facebook has conflicts with other plugins.
After two hours of head bashing I figured this out. So there are three things you can do…
One, open up your assets folder and go to plugins… Inside there open up the android folder… In there you will have a android manifest xml file.
Option 1: Delete anything that is ‘new’ that you no longer want to mess with… (delete the entire line.
Option 2: Filter through the XML and get it to store the correct SDK minimums.
Option 3: Change your Unity build settings to 5.0-6.0 or whatever the app requires.
Hello,
I am facing Admob and Chartboost merging problem. See on attachment. Please let me know if it is done. I am using Chartboost v6.5, admob v7.3, Unity v5.3.5, SDK API 24
Here is how I solved the problem:
Increase the Minimum API Level in Build Settings → Player Settings → Android
Match the min. and targeted SDK versions in Assets/Plugins/Android/AndroidManifest.xml
Restart the Unity Editor. This step is important as it will remove all other unnecessary Android Manifests in /Temp
go to assets/plugins/android and update the android manifest file. Change the target sdk version to 24
THX to lokesh_dangi_
https://forum.unity3d.com/threads/unable-to-merge-android-manifest-error.289850/
I had this problem with Google’s Admob, and I fixed it by changing the minimum API level, like user “imageshazadmohammed” said. Under Edit > Project Settings > Player, under Settings for Android > Other Settings > Identification, there is a minimum API level, with each one being attached to a version of Android. Raising it should fix the problem. If you ask me, you shouldn’t bother supporting anything below Kit-Kat anyways (which happens to be API level 19), and after doing so, I got no more errors!
I have an error when i have been bulding with google play and google services sdk.
Error: Unable to convert classes into dex format.
I try all things that are explain in this post and nothing work.
I put the error:
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“E:/SDK_ANDROID ools” -Dfile.encoding=UTF8 -jar “G:\UNITY\UNITY_version_5.4\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CheckResult;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:613)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at SDKMain.main(SDKMain.java:129)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:605)
… 9 more
]
stdout[
processing archive G:\UNITY\PERSONAL\RED_PUBLICIDAD\GOOGLE_PLAY\Test_1_googlepalay _3\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\libs.\unity-plugin-library.jar…
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
ignored resource com/
ignored resource com/google/
ignored resource com/google/unity/
processing com/google/unity/BuildConfig.class…
ignored resource com/google/unity/ads/
processing com/google/unity/ads/Banner.class…
processing com/google/unity/ads/Banner$1.class…
processing com/google/unity/ads/Banner$1$1.class…
processing com/google/unity/ads/Banner$2.class…
processing com/google/unity/ads/Banner$3.class…
processing com/google/unity/ads/Banner$4.class…
processing com/google/unity/ads/Banner$5.class…
processing com/google/unity/ads/CustomNativeAd.class…
processing com/google/unity/ads/CustomNativeAd$1.class…
processing com/google/unity/ads/CustomNativeAd$2.class…
processing com/google/unity/ads/Interstitial.class…
processing com/google/unity/ads/Interstitial$1.class…
processing com/google/unity/ads/Interstitial$1$1.class…
processing com/google/unity/ads/Interstitial$2.class…
processing com/google/unity/ads/Interstitial$3.class…
processing com/google/unity/ads/Interstitial$4.class…
processing com/google/unity/ads/Interstitial$5.class…
processing com/google/unity/ads/NativeAdLoader.class…
processing com/google/unity/ads/NativeAdLoader$1.class…
processing com/google/unity/ads/NativeAdLoader$2.class…
processing com/google/unity/ads/NativeAdLoader$3.class…
processing com/google/unity/ads/NativeAdLoader$3$1.class…
processing com/google/unity/ads/NativeAdLoader$3$2.class…
processing com/google/unity/ads/NativeAdLoader$3$3.class…
processing com/google/unity/ads/NativeAdLoader$4.class…
processing com/google/unity/ads/NativeExpressAd.class…
processing com/google/unity/ads/NativeExpressAd$1.class…
processing com/google/unity/ads/NativeExpressAd$1$1.class…
processing com/google/unity/ads/NativeExpressAd$2.class…
processing com/google/unity/ads/NativeExpressAd$3.class…
processing com/google/unity/ads/NativeExpressAd$4.class…
processing com/google/unity/ads/NativeExpressAd$5.class…
processing com/google/unity/ads/NativeExpressAd$6.class…
processing com/google/unity/ads/PluginUtils.class…
processing com/google/unity/ads/RewardBasedVideo.class…
processing com/google/unity/ads/RewardBasedVideo$1.class…
processing com/google/unity/ads/RewardBasedVideo$1$1.class…
processing com/google/unity/ads/RewardBasedVideo$2.class…
processing com/google/unity/ads/RewardBasedVideo$3.class…
processing com/google/unity/ads/UnityAdListener.class…
processing com/google/unity/ads/UnityCustomNativeAdListener.class…
processing com/google/unity/ads/UnityRewardBasedVideoAdListener.class…
processing archive G:\UNITY\PERSONAL\RED_PUBLICIDAD\GOOGLE_PLAY\Test_1_googlepalay _3\Temp\StagingArea\android-libraries\MainLibProj\libs.\play-games-plugin-support.jar…
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
ignored resource com/
ignored resource com/google/
ignored resource com/google/games/
ignored resource com/google/games/bridge/
processing com/google/games/bridge/BuildConfig.class…
processing com/google/games/bridge/NativeBridgeActivity.class…
processing com/google/games/bridge/TokenFragment.class…
processing com/google/games/bridge/TokenFragment$1.class…
processing com/google/games/bridge/TokenFragment$TokenRequest.class…
processing com/google/games/bridge/TokenPendingResult.class…
processing com/google/games/bridge/TokenResult.class…
processing archive G:\UNITY\PERSONAL\RED_PUBLICIDAD\GOOGLE_PLAY\Test_1_googlepalay _3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\libs.\classes.jar…
ignored resource .readme
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
ignored resource android/
ignored resource android/support/
ignored resource android/support/v7/
ignored resource android/support/v7/app/
processing android/support/v7/app/ActionBar.class…
processing android/support/v7/app/ActionBar$DisplayOptions.class…
processing android/support/v7/app/ActionBar$LayoutParams.class…
processing android/support/v7/app/ActionBar$NavigationMode.class…
processing android/support/v7/app/ActionBar$OnMenuVisibilityListener.class…
processing android/support/v7/app/ActionBar$OnNavigationListener.class…
processing android/support/v7/app/ActionBar$Tab.class…
processing android/support/v7/app/ActionBar$TabListener.class…
processing android/support/v7/app/ActionBarActivity.class…
processing android/support/v7/app/ActionBarDrawerToggle.class…
processing android/support/v7/app/ActionBarDrawerToggle$1.class…
processing android/support/v7/app/ActionBarDrawerToggle$Delegate.class…
processing android/support/v7/app/ActionBarDrawerToggle$DelegateProvider.class…
processing android/support/v7/app/ActionBarDrawerToggle$DrawerArrowDrawableToggle.class…
processing android/support/v7/app/ActionBarDrawerToggle$DrawerToggle.class…
processing android/support/v7/app/ActionBarDrawerToggle$DummyDelegate.class…
processing android/support/v7/app/ActionBarDrawerToggle$HoneycombDelegate.class…
processing android/support/v7/app/ActionBarDrawerToggle$JellybeanMr2Delegate.class…
processing android/support/v7/app/ActionBarDrawerToggle$ToolbarCompatDelegate.class…
processing android/support/v7/app/ActionBarDrawerToggleHoneycomb.class…
processing android/support/v7/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo.class…
processing android/support/v7/app/AlertController.class…
processing android/support/v7/app/AlertController$1.class…
processing android/support/v7/app/AlertController$2.class…
processing android/support/v7/app/AlertController$3.class…
processing android/support/v7/app/AlertController$4.class…
processing android/support/v7/app/AlertController$5.class…
processing android/support/v7/app/AlertController$AlertParams.class…
processing android/support/v7/app/AlertController$AlertParams$1.class…
processing android/support/v7/app/AlertController$AlertParams$2.class…
processing android/support/v7/app/AlertController$AlertParams$3.class…
processing android/support/v7/app/AlertController$AlertParams$4.class…
processing android/support/v7/app/AlertController$AlertParams$OnPrepareListViewListener.class…
processing android/support/v7/app/AlertController$ButtonHandler.class…
processing android/support/v7/app/AlertController$CheckedItemAdapter.class…
processing android/support/v7/app/AlertDialog.class…
processing android/support/v7/app/AlertDialog$Builder.class…
processing android/support/v7/app/AppCompatActivity.class…
processing android/support/v7/app/AppCompatCallback.class…
processing android/support/v7/app/AppCompatDelegate.class…
processing android/support/v7/app/AppCompatDelegateImplBase.class…
processing android/support/v7/app/AppCompatDelegateImplBase$1.class…
processing android/support/v7/app/AppCompatDelegateImplBase$ActionBarDrawableToggleImpl.class…
processing android/support/v7/app/AppCompatDelegateImplBase$AppCompatWindowCallbackBase.class…
processing android/support/v7/app/AppCompatDelegateImplV11.class…
processing android/support/v7/app/AppCompatDelegateImplV14.class…
processing android/support/v7/app/AppCompatDelegateImplV14$AppCompatWindowCallbackV14.class…
processing android/support/v7/app/AppCompatDelegateImplV23.class…
processing android/support/v7/app/AppCompatDelegateImplV23$AppCompatWindowCallbackV23.class…
processing android/support/v7/app/AppCompatDelegateImplV7.class…
processing android/support/v7/app/AppCompatDelegateImplV7$1.class…
processing android/support/v7/app/AppCompatDelegateImplV7$2.class…
processing android/support/v7/app/AppCompatDelegateImplV7$3.class…
processing android/support/v7/app/AppCompatDelegateImplV7$4.class…
processing android/support/v7/app/AppCompatDelegateImplV7$5.class…
processing android/support/v7/app/AppCompatDelegateImplV7$5$1.class…
processing android/support/v7/app/AppCompatDelegateImplV7$6.class…
processing android/support/v7/app/AppCompatDelegateImplV7$ActionMenuPresenterCallback.class…
processing android/support/v7/app/AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.class…
processing android/support/v7/app/AppCompatDelegateImplV7$ActionModeCallbackWrapperV7$1.class…
processing android/support/v7/app/AppCompatDelegateImplV7$ListMenuDecorView.class…
processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState.class…
processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState$SavedState.class…
processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState$SavedState$1.class…
processing android/support/v7/app/AppCompatDelegateImplV7$PanelMenuPresenterCallback.class…
processing android/support/v7/app/AppCompatDialog.class…
processing android/support/v7/app/AppCompatDialogFragment.class…
processing android/support/v7/app/AppCompatViewInflater.class…
processing android/support/v7/app/AppCompatViewInflater$DeclaredOnClickListener.class…
processing android/support/v7/app/NavItemSelectedListener.class…
processing android/support/v7/app/NotificationCompat.class…
processing android/support/v7/app/NotificationCompat$1.class…
processing android/support/v7/app/NotificationCompat$Builder.class…
processing android/support/v7/app/NotificationCompat$IceCreamSandwichExtender.class…
processing android/support/v7/app/NotificationCompat$JellybeanExtender.class…
processing android/support/v7/app/NotificationCompat$LollipopExtender.class…
processing android/support/v7/app/NotificationCompat$MediaStyle.class…
processing android/support/v7/app/NotificationCompatImpl21.class…
processing android/support/v7/app/NotificationCompatImplBase.class…
processing android/support/v7/app/ToolbarActionBar.class…
processing android/support/v7/app/ToolbarActionBar$1.class…
processing android/support/v7/app/ToolbarActionBar$2.class…
processing android/support/v7/app/ToolbarActionBar$ActionMenuPresenterCallback.class…
processing android/support/v7/app/ToolbarActionBar$MenuBuilderCallback.class…
processing android/support/v7/app/ToolbarActionBar$PanelMenuPresenterCallback.class…
processing android/support/v7/app/ToolbarActionBar$ToolbarCallbackWrapper.class…
processing android/support/v7/app/TwilightCalculator.class…
processing android/support/v7/app/TwilightManager.class…
processing android/support/v7/app/TwilightManager$1.class…
processing android/support/v7/app/TwilightManager$TwilightState.class…
processing android/support/v7/app/WindowDecorActionBar.class…
processing android/support/v7/app/WindowDecorActionBar$1.class…
processing android/support/v7/app/WindowDecorActionBar$2.class…
processing android/support/v7/app/WindowDecorActionBar$3.class…
processing android/support/v7/app/WindowDecorActionBar$ActionModeImpl.class…
processing android/support/v7/app/WindowDecorActionBar$TabImpl.class…
ignored resource android/support/v7/appcompat/
processing android/support/v7/appcompat/BuildConfig.class…
ignored resource android/support/v7/graphics/
ignored resource android/support/v7/graphics/drawable/
processing android/support/v7/graphics/drawable/DrawableUtils.class…
processing android/support/v7/graphics/drawable/DrawableWrapper.class…
processing android/support/v7/graphics/drawable/DrawerArrowDrawable.class…
processing android/support/v7/graphics/drawable/DrawerArrowDrawable$ArrowDirection.class…
ignored resource android/support/v7/text/
processing android/support/v7/text/AllCapsTransformationMethod.class…
ignored resource android/support/v7/transition/
processing android/support/v7/transition/ActionBarTransition.class…
ignored resource android/support/v7/view/
processing android/support/v7/view/ActionBarPolicy.class…
processing android/support/v7/view/ActionMode.class…
processing android/support/v7/view/ActionMode$Callback.class…
processing android/support/v7/view/CollapsibleActionView.class…
processing android/support/v7/view/ContextThemeWrapper.class…
processing android/support/v7/view/StandaloneActionMode.class…
processing android/support/v7/view/SupportActionModeWrapper.class…
processing android/support/v7/view/SupportActionModeWrapper$CallbackWrapper.class…
processing android/support/v7/view/SupportMenuInflater.class…
processing android/support/v7/view/SupportMenuInflater$InflatedOnMenuItemClickListener.class…
processing android/support/v7/view/SupportMenuInflater$MenuState.class…
processing android/support/v7/view/ViewPropertyAnimatorCompatSet.class…
processing android/support/v7/view/ViewPropertyAnimatorCompatSet$1.class…
processing android/support/v7/view/WindowCallbackWrapper.class…
ignored resource android/support/v7/view/menu/
processing android/support/v7/view/menu/ActionMenuItem.class…
processing android/support/v7/view/menu/ActionMenuItemView.class…
processing android/support/v7/view/menu/ActionMenuItemView$ActionMenuItemForwardingListener.class…
processing android/support/v7/view/menu/ActionMenuItemView$PopupCallback.class…
processing android/support/v7/view/menu/BaseMenuPresenter.class…
processing android/support/v7/view/menu/BaseMenuWrapper.class…
processing android/support/v7/view/menu/BaseWrapper.class…
processing android/support/v7/view/menu/ExpandedMenuView.class…
processing android/support/v7/view/menu/ListMenuItemView.class…
processing android/support/v7/view/menu/ListMenuPresenter.class…
processing android/support/v7/view/menu/ListMenuPresenter$MenuAdapter.class…
processing android/support/v7/view/menu/MenuBuilder.class…
processing android/support/v7/view/menu/MenuBuilder$Callback.class…
processing android/support/v7/view/menu/MenuBuilder$ItemInvoker.class…
In the AndroidManifest-Cardboard.xml :
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25" />
The android:minSdkVersion: number has to correlate with the PlayerSettings>Minimum API Level(>19). Fixed it for me.
This worked for me too, but I had to change the number to 25, the number it said it was expecting at the end of the error message.