Unable to convert classes into dex format

I know that there are a lot of people ask for this question and there are a lot of solution such as update the JDK or try to find duplicate .jar or .aar file. However I try every solution I have find in this forum, unfortunately I still get the error. TT

I using Unity 5.6.0b11 with facebook sdk 7.9.4
and this is my error

CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“C:/Users/Lion.DESKTOP-E52SQR0/AppData/Local/Android/sdk ools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity 5.6.0b11\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoJellyBeanMr2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorCompatHelper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorListenerCompat;

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 C:\Users\Lion.DESKTOP-E52SQR0\Desktop\BallGame\Game\DazzlingBall\Temp\StagingArea\android-libraries\GoogleAIDL\libs.\classes.jar…
processing com/android/vending/billing/BuildConfig.class…
processing com/android/vending/billing/IInAppBillingService.class…
processing com/android/vending/billing/IInAppBillingService$Stub.class…
processing com/android/vending/billing/IInAppBillingService$Stub$Proxy.class…
processing archive C:\Users\Lion.DESKTOP-E52SQR0\Desktop\BallGame\Game\DazzlingBall\Temp\StagingArea\android-libraries\GooglePlay\libs.\classes.jar…
processing com/unity/purchasing/googleplay/ActivityLauncher.class…
processing com/unity/purchasing/googleplay/BillingServiceManager.class…
processing com/unity/purchasing/googleplay/BillingServiceManager$1.class…
processing com/unity/purchasing/googleplay/BillingServiceManager$1$1.class…
processing com/unity/purchasing/googleplay/BillingServiceManager$1$2.class…
processing com/unity/purchasing/googleplay/BillingServiceManager$2.class…
processing com/unity/purchasing/googleplay/BillingServiceProcessor.class…
processing com/unity/purchasing/googleplay/BuildConfig.class…
processing com/unity/purchasing/googleplay/Consts.class…
processing com/unity/purchasing/googleplay/Consts$PurchaseState.class…
processing com/unity/purchasing/googleplay/Consts$ResponseCode.class…
processing com/unity/purchasing/googleplay/GooglePlayBillingUnAvailableException.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$1.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$2.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$3.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$4.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$5.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$6.class…
processing com/unity/purchasing/googleplay/GooglePlayPurchasing$7.class…
processing com/unity/purchasing/googleplay/IActivityLauncher.class…
processing com/unity/purchasing/googleplay/IBillingServiceManager.class…
processing com/unity/purchasing/googleplay/IabException.class…
processing com/unity/purchasing/googleplay/IabHelper.class…
processing com/unity/purchasing/googleplay/IabHelper$1.class…
processing com/unity/purchasing/googleplay/IabHelper$2.class…
processing com/unity/purchasing/googleplay/IabHelper$2$1.class…
processing com/unity/purchasing/googleplay/IabHelper$3.class…
processing com/unity/purchasing/googleplay/IabHelper$4.class…
processing com/unity/purchasing/googleplay/IabHelper$OnConsumeFinishedListener.class…
processing com/unity/purchasing/googleplay/IabHelper$OnConsumeMultiFinishedListener.class…
processing com/unity/purchasing/googleplay/IabHelper$OnIabPurchaseFinishedListener.class…
processing com/unity/purchasing/googleplay/IabHelper$OnIabSetupFinishedListener.class…
processing com/unity/purchasing/googleplay/IabHelper$QueryInventoryFinishedListener.class…
processing com/unity/purchasing/googleplay/IabResult.class…
processing com/unity/purchasing/googleplay/Inventory.class…
processing com/unity/purchasing/googleplay/Purchase.class…
processing com/unity/purchasing/googleplay/PurchaseActivity.class…
processing com/unity/purchasing/googleplay/PurchaseFailedEvent.class…
processing com/unity/purchasing/googleplay/SkuDetails.class…
processing archive C:\Users\Lion.DESKTOP-E52SQR0\Desktop\BallGame\Game\DazzlingBall\Temp\StagingArea\android-libraries\animated-vector-drawable-23.4.0\libs.\classes.jar…
processing android/support/graphics/drawable/AnimatedVectorDrawableCompat.class…
processing android/support/graphics/drawable/AnimatedVectorDrawableCompat$1.class…
processing android/support/graphics/drawable/AnimatedVectorDrawableCompat$AnimatedVectorDrawableCompatState.class…
processing android/support/graphics/drawable/AnimatedVectorDrawableCompat$AnimatedVectorDrawableDelegateState.class…
processing android/support/graphics/drawable/animated/BuildConfig.class…
processing archive C:\Users\Lion.DESKTOP-E52SQR0\Desktop\BallGame\Game\DazzlingBall\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\libs.\classes.jar…
ignored resource .readme
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/AppCompatDelegate$NightMode.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…
processing android/support/v7/appcompat/BuildConfig.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…
processing android/support/v7/text/AllCapsTransformationMethod.class…
processing android/support/v7/transition/ActionBarTransition.class…
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…
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…
processin

Hello,

I too had the same issue. I tried this and it worked for me.

If you have used Admob then look for “support-v4” file under your Plugins> android folder. Probably it would have been duplicated and you need to delete one of them. It doesn’t necessarily have to be in the same folder.

In your error it says:
“Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;”

It says that Support V4 is already added. Which means there is a duplicate and it is accessing the duplicate again. So delete and try building again.

Hope this helps…

This error is shown when the DEX tool (which is part of the Android SDK tools) fails to run. This tool is being executed by Unity as part of the Android build process.

In your case, it happens because there are multiple libraries (with multiple identical classes) that are being added to the APK, and so the DEX tool fails.

This can be seen in these error messages:

Uncaught translation error:
java.lang.IllegalArgumentException:
already added:
Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoJellyBeanMr2;
Uncaught translation error:
java.lang.IllegalArgumentException:
already added:
Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl;
Uncaught translation error:
java.lang.IllegalArgumentException:
already added:
Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

The solution is to eliminate the duplicate libraries (usually an .aar or .jar file with the same name or similar names under different folders in the project). By looking at the class names, these duplicates are related to the “Android support library”.

Try to find these duplications and remove them, so that you’re left off with only 1 copy of that library.

NOTE: Sometimes, it can get a bit tricky to fix these issues yourself. If all else fails, i recommend you to contact me via this link - it is a professional service to help fix Android related build issues (due to manifest merging, conflicting plugins, etc). Check it out if you’re unable to resolve your issues !

I solved my issue by logging into unity and …by going onto services tap and turn the ads off. This will solved the issue in my case…

I solved my problem by delete the extra AndroidManifest.xml in AAR file.(One is already in the “Assets/Plugins/Android/” directory.)

Inspiration from KrishRaghav’s answer. @KrishRaghav

This happened to me as I installed Unity Monetization 3.0, I was getting a smiliar Dex error message and supposedly this happens whenever you have duplicate files in your library, problem was I didn’t have any duplicates at least on my assetsgame folder BUT there is a folder under Project called Packages and there was a folder called com.unity.ads the route for me was C:\Users\myuser\AppData\Local\cache\packages\packages.unity.com</b> and it was the cause of my problem when I put show in explorer there was a folder called com.unity.ads@2.0.8

Solution for me was to erase that folder, after that compiling was not an issue at all, hope this is useful despite the time.

I also got an error like that when I imported FacebookLeaderboard assets. I tried to delete files like this that are in the \ FacebookSDK \ Plugins \ Android \ libs Assets folder. and success

133897-1.png

  • List item

i was facing the same problem after adding admob in my project , here are 2 possible solutions
1 : go to the file >> build settings and change the option internal to gradle
2 : open libs folders separately of both facebook sdk and google play services and delete the matching files
it would be something like (support v4 ),i was facing the same problem after implementing admob in my project here are 2 possible solutions
1: go to the file >> build settings and then change internal option to gradle and then build it
2 : go to the libs folder of facebook sdk and google play services libs folder open them separately in explorer and delete the matching files it will be (suppor v4 )

I had this problem too and was able to solve it through the steps below.
First study the error e.g Landroid/support/v4/accessibilityservice … means that you have a file/library called ‘android-support-v4…’ or ‘android.support.v4…’ that is causing this problems. Just look for a .jar file with that name and delete it.
If the file name isn’t called that, you need to decompile the .jar file online to view its contents online here http://www.javadecompilers.com you can then inspect the format of the jar file and see whether it conforms to the error that you were getting in unity. See picture below for details

Good luck

Had same problem. The next thing helped me:

  1. In Unity go to Assets/AudienceNetwork/Plugins/Android/libs/.
  2. Deactivate next plugins: support-compat, support-core-ui, support-core-utils, support-v4

My error message:

CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_191\bin\java.exe -Xmx4096M -Dcom.android.sdkmanager.toolsdir="C:/Users/User-2/AppData/Local/Android/Sdk	ools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity Versions\2017.4.19f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/compat/BuildConfig;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoJellyBeanImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoJellyBeanMr2Impl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBean;

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:614)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:310)
	at com.android.dx.command.dexer.Main.runDx(Main.java:288)
	at com.android.dx.command.dexer.Main.main(Main.java:244)
	at com.android.dx.command.Main.main(Main.java:95)
	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:130)
Caused by: java.lang.InterruptedException: Too many errors
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:606)
	... 9 more
]
stdout[
processing archive D:\andry\Repositories\UnityProjects\Puzzle2\Temp\StagingArea\android-libraries\AudienceNetwork\libs\.\classes.jar...
processing com/facebook/ads/AbstractAdListener.class...
processing com/facebook/ads/Ad.class...

I get this error when I enable ADS in Unity’s services for an old project that’s still on Unity 5.6.3p2. I tried countless suggested fixes for this with no luck. But once I turned off Ads it resolved this issue.

in the player settings convert from internal to Gradle in the build system

-CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_171\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“C:/Users/123/AppData/Local/Android/Sdk ools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

-Error building Player: 2 errors
-Build completed with a result of ‘Failed’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
(This errors i found any solution please)