CommandInvokationFailure: Unable to convert classes into dex format.
Hi, so I tried building my project and I am getting this error and cant get what is the problem. If anyone would be so kind and explain to me what this error means! Thanks in advance
ERROR: CommandInvokationFailure: Unable to convert classes into dex format. C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -Xmx4096M -Dcom.android.sdkmanager.toolsdir="D:/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[ Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/BuildConfig; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/IUnityAdsListener; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/UnityAds; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/UnityAds$FinishState; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/UnityAds$PlacementState; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/UnityAds$UnityAdsError; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/mediation/IUnityAdsExtendedListener; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/metadata/InAppPurchaseMetaData; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/ads/metadata/MediationMetaData;
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:136) 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:\Dokumenty\Programování\Unity\The game\Temp\StagingArea\android-libraries\UnityAds\libs.\classes.jar... processing com/unity3d/ads/BuildConfig.class... processing com/unity3d/ads/IUnityAdsListener.class... processing com/unity3d/ads/UnityAds.class... processing com/unity3d/ads/UnityAds$FinishState.class... processing com/unity3d/ads/UnityAds$PlacementState.class... processing com/unity3d/ads/UnityAds$UnityAdsError.class... processing com/unity3d/ads/mediation/IUnityAdsExtendedListener.class... processing com/unity3d/ads/metadata/InAppPurchaseMetaData.class... processing com/unity3d/ads/metadata/MediationMetaData.class... processing com/unity3d/ads/metadata/MetaData.class... processing com/unity3d/ads/metadata/PlayerMetaData.class... processing com/unity3d/ads/purchasing/IPurchasing.class... processing com/unity3d/ads/purchasing/Purchasing.class... processing com/unity3d/ads/purchasing/Purchasing$UnityAdsPurchasingEvent.class... processing com/unity3d/ads/purchasing/PurchasingError.class... processing com/unity3d/services/IUnityServicesListener.class... processing com/unity3d/services/UnityServices.class... processing com/unity3d/services/UnityServices$UnityServicesError.class... processing com/unity3d/services/ads/UnityAdsImplementation.class... processing com/unity3d/services/ads/UnityAdsImplementation$1.class... processing com/unity3d/services/ads/UnityAdsImplementation$2.class... processing com/unity3d/services/ads/UnityAdsImplementation$3.class... processing com/unity3d/services/ads/adunit/AdUnitActivity.class... processing com/unity3d/services/ads/adunit/AdUnitError.class... processing com/unity3d/services/ads/adunit/AdUnitEvent.class... processing com/unity3d/services/ads/adunit/AdUnitMotionEvent.class... processing com/unity3d/services/ads/adunit/AdUnitOpen.class... processing com/unity3d/services/ads/adunit/AdUnitRelativeLayout.class... processing com/unity3d/services/ads/adunit/AdUnitSoftwareActivity.class... processing com/unity3d/services/ads/adunit/AdUnitTransparentActivity.class... processing com/unity3d/services/ads/adunit/AdUnitTransparentSoftwareActivity.class... processing com/unity3d/services/ads/adunit/IAdUnitViewHandler.class... processing com/unity3d/services/ads/adunit/PermissionsEvent.class... processing com/unity3d/services/ads/adunit/VideoPlayerHandler.class... processing com/unity3d/services/ads/adunit/WebPlayerHandler.class... processing com/unity3d/services/ads/adunit/WebViewHandler.class... processing com/unity3d/services/ads/api/AdUnit.class... processing com/unity3d/services/ads/api/AdUnit$1.class... processing com/unity3d/services/ads/api/AdUnit$2.class... processing com/unity3d/services/ads/api/AdUnit$3.class... processing com/unity3d/services/ads/api/AdUnit$4.class... processing com/unity3d/services/ads/api/AdUnit$5.class... processing com/unity3d/services/ads/api/AdUnit$6.class... processing com/unity3d/services/ads/api/AdsProperties.class... processing com/unity3d/services/ads/api/Listener.class... processing com/unity3d/services/ads/api/Listener$1.class... processing com/unity3d/services/ads/api/Listener$2.class... processing com/unity3d/services/ads/api/Listener$3.class... processing com/unity3d/services/ads/api/Listener$4.class... processing com/unity3d/services/ads/api/Listener$5.class... processing com/unity3d/services/ads/api/Listener$6.class... processing com/unity3d/services/ads/api/Placement.class... processing com/unity3d/services/ads/api/Purchasing.class... processing com/unity3d/services/ads/api/Purchasing$1.class... processing com/unity3d/services/ads/api/Purchasing$2.class... processing com/unity3d/services/ads/api/Purchasing$3.class... processing com/unity3d/services/ads/api/Purchasing$4.class... processing com/unity3d/services/ads/api/VideoPlayer.class... processing com/unity3d/services/ads/api/VideoPlayer$1.class... processing com/unity3d/services/ads/api/VideoPlayer$2.class... processing com/unity3d/services/ads/api/VideoPlayer$3.class... processing com/unity3d/services/ads/api/VideoPlayer$4.class... processing com/unity3d/services/ads/api/VideoPlayer$5.class... processing com/unity3d/services/ads/api/VideoPlayer$6.class... processing com/unity3d/services/ads/api/WebPlayer.class... processing com/unity3d/services/ads/api/WebPlayer$1.class... processing com/unity3d/services/ads/api/WebPlayer$2.class... processing com/unity3d/services/ads/api/WebPlayer$3.class... processing com/unity3d/services/ads/api/WebPlayer$4.class... processing com/unity3d/services/ads/api/WebPlayer$5.class... processing com/unity3d/services/ads/configuration/AdsModuleConfiguration.class... processing com/unity3d/services/ads/configuration/AdsModuleConfiguration$1.class... processing com/unity3d/services/ads/configuration/AdsModuleConfiguration$2.class... processing com/unity3d/services/ads/configuration/AdsModuleConfiguration$3.class... processing com/unity3d/services/ads/configuration/IAdsModuleConfiguration.class... processing com/unity3d/services/ads/placement/Placement.class... processing com/unity3d/services/ads/properties/AdsProperties.class... processing com/unity3d/services/ads/video/VideoPlayerError.class... processing com/unity3d/services/ads/video/VideoPlayerEvent.class... processing com/unity3d/services/ads/video/VideoPlayerView.class... processing com/unity3d/services/ads/video/VideoPlayerView$1.class... processing com/unity3d/services/ads/video/VideoPlayerView$2.class... processing com/unity3d/services/ads/video/VideoPlayerView$3.class... processing com/unity3d/services/ads/video/VideoPlayerView$4.class... processing com/unity3d/services/ads/video/VideoPlayerView$5.class... processing com/unity3d/services/ads/video/VideoPlayerView$6.class... processing com/unity3d/services/ads/webplayer/WebPlayer.class... processing com/unity3d/services/ads/webplayer/WebPlayer$1.class... processing com/unity3d/services/ads/webplayer/WebPlayer$JavaScriptInvocation.class... processing com/unity3d/services/ads/webplayer/WebPlayer$WebPlayerChromeClient.class... processing com/unity3d/services/ads/webplayer/WebPlayer$WebPlayerClient.class... processing com/unity3d/services/ads/webplayer/WebPlayer$WebPlayerDownloadListener.class... processing com/unity3d/services/ads/webplayer/WebPlayerBridgeInterface.class... processing com/unity3d/services/ads/webplayer/WebPlayerError.class... processing com/unity3d/services/ads/webplayer/WebPlayerEvent.class... processing com/unity3d/services/analytics/AcquisitionType.class... processing com/unity3d/services/analytics/AcquisitionType$1.class... processing com/unity3d/services/analytics/UnityAnalytics.class... processing com/unity3d/services/analytics/UnityAnalytics$AnalyticsEventType.class... processing com/unity3d/services/analytics/core/api/Analytics.class... processing com/unity3d/services/analytics/core/api/Analytics$1.class... processing com/unity3d/services/analytics/core/configuration/AnalyticsModuleConfiguration.class... processing com/unity3d/services/analytics/interfaces/Analytics.class... processing com/unity3d/services/analytics/interfaces/AnalyticsError.class... processing com/unity3d/services/analytics/interfaces/IAnalytics.class... processing com/unity3d/services/ar/ARCheck.class... processing com/unity3d/services/ar/ARError.class... processing com/unity3d/services/ar/AREvent.class... processing com/unity3d/services/ar/ARUtils.class... processing com/unity3d/services/ar/api/AR.class... processing com/unity3d/services/ar/configuration/ARModuleConfiguration.class... processing com/unity3d/services/ar/view/ARView.class... processing com/unity3d/services/ar/view/ARView$1.class... processing com/unity3d/services/ar/view/ARViewHandler.class... processing com/unity3d/services/ar/view/BackgroundRenderer.class... processing com/unity3d/services/ar/view/DisplayRotationHelper.class... processing com/unity3d/services/ar/view/GLSurfaceView.class... processing com/unity3d/services/ar/view/GLSurfaceView$1.class... processing com/unity3d/services/ar/view/GLSurfaceView$BaseConfigChooser.class... processing com/unity3d/services/ar/view/GLSurfaceView$ComponentSizeChooser.class... processing com/unity3d/services/ar/view/GLSurfaceView$DefaultContextFactory.class... processing com/unity3d/services/ar/view/GLSurfaceView$DefaultWindowSurfaceFactory.class... processing com/unity3d/services/ar/view/GLSurfaceView$EGLConfigChooser.class... processing com/unity3d/services/ar/view/GLSurfaceView$EGLContextFactory.class... processing com/unity3d/services/ar/view/GLSurfaceView$EGLWindowSurfaceFactory.class... processing com/unity3d/services/ar/view/GLSurfaceView$EglHelper.class... processing com/unity3d/services/ar/view/GLSurfaceView$GLThread.class... processing com/unity3d/services/ar/view/GLSurfaceView$GLThreadManager.class... processing com/unity3d/services/ar/view/GLSurfaceView$GLWrapper.class... processing com/unity3d/services/ar/view/GLSurfaceView$LogWriter.class... processing com/unity3d/services/ar/view/GLSurfaceView$Renderer.class... processing com/unity3d/services/ar/view/GLSurfaceView$SimpleEGLConfigChooser.class... processing com/unity3d/services/ar/view/ShaderLoader.class... processing com/unity3d/services/banners/BannerHide.class... processing com/unity3d/services/banners/BannerShow.class... processing com/unity3d/services/banners/IUnityBannerListener.class... processing com/unity3d/services/banners/UnityBanners.class... processing com/unity3d/services/banners/UnityBanners$1.class... processing com/unity3d/services/banners/UnityBanners$2.class... processing com/unity3d/services/banners/UnityBanners$3.class... processing com/unity3d/services/banners/api/Banner.class... processing com/unity3d/services/banners/api/Banner$1.class... processing com/unity3d/services/banners/api/Banner$2.class... processing com/unity3d/services/banners/api/Banner$3.class... processing com/unity3d/services/banners/api/Banner$4.class... processing com/unity3d/services/banners/api/Banner$5.class... processing com/unity3d/services/banners/api/BannerListener.class... processing com/unity3d/services/banners/api/BannerListener$1.class... processing com/unity3d/services/banners/api/BannerListener$2.class... processing com/unity3d/services/banners/api/BannerListener$3.class... processing com/unity3d/services/banners/api/BannerListener$4.class... processing com/unity3d/services/banners/api/BannerListener$5.class... processing com/unity3d/services/banners/api/BannerListener$6.class... processing com/unity3d/services/banners/configuration/BannersModuleConfiguration.class... processing com/unity3d/services/banners/properties/BannerProperties.class... processing com/unity3d/services/banners/view/BannerEvent.class... processing com/unity3d/services/banners/view/BannerPosition.class... processing com/unity3d/services/banners/view/BannerView.class... processing com/unity3d/services/banners/view/BannerView$1.class... processing com/unity3d/services/banners/view/LayoutParamsHelper.class... processing com/unity3d/services/core/api/Broadcast.class... processing com/unity3d/services/core/api/Cache.class... processing com/unity3d/services/core/api/Cache$1.class... processing com/unity3d/services/core/api/Connectivity.class... processing com/unity3d/services/core/api/DeviceInfo.class... processing com/unity3d/services/core/api/DeviceInfo$1.class... processing com/unity3d/services/core/api/DeviceInfo$2.class... processing com/unity3d/services/core/api/DeviceInfo$DeviceInfoEvent.class... processing com/unity3d/services/core/api/DeviceInfo$StorageType.class... processing com/unity3d/services/core/api/Intent.class... processing com/unity3d/services/core/api/Intent$IntentError.class... processing com/unity3d/services/core/api/Intent$IntentException.class... processing com/unity3d/services/core/api/Lifecycle.class... processing com/unity3d/services/core/api/Permissions.class... processing com/unity3d/services/core/api/PermissionsError.class... processing com/unity3d/services/core/api/Preferences.class... processing com/unity3d/services/core/api/Request.class... processing com/unity3d/services/core/api/Request$1.class... processing com/unity3d/services/core/api/Request$2.class... processing com/unity3d/services/core/api/Request$3.class... processing com/unity3d/services/core/api/Resolve.class... processing com/unity3d/services/core/api/Resolve$1.class... processing com/unity3d/services/core/api/Sdk.class... processing com/unity3d/services/core/api/SensorInfo.class... processing com/unity3d/services/core/api/Storage.class... processing com/unity3d/services/core/broadcast/BroadcastError.class... processing com/unity3d/services/core/broadcast/BroadcastEvent.class... processing com/unity3d/services/core/broadcast/BroadcastEventReceiver.class... processing com/unity3d/services/core/broadcast/BroadcastMonitor.class... processing com/unity3d/services/core/cache/CacheDirectory.class... processing com/unity3d/services/core/cache/CacheDirectoryType.class... processing com/unity3d/services/core/cache/CacheError.class... processing com/unity3d/services/core/cache/CacheEvent.class... processing com/unity3d/services/core/cache/CacheThread.class... processing com/unity3d/services/core/cache/CacheThreadHandler.class... processing com/unity3d/services/core/cache/CacheThreadHandler$1.class... processing com/unity3d/services/core/configuration/Configuration.class... processing com/unity3d/services/core/configuration/ConfigurationFailure.class... processing com/unity3d/services/core/configuration/CoreModuleConfiguration.class... processing com/unity3d/services/core/configuration/EnvironmentCheck.class... processing com/unity3d/services/core/configuration/IModuleConfiguration.class... processing com/unity3d/services/core/configuration/InitializeThread.class... processing com/unity3d/services/core/configuration/InitializeThread$1.class... processing com/unity3d/services/core/configuration/InitializeThread$InitializeState.class... processing com/unity3d/services/core/configuration/InitializeThread$InitializeStateComplete.class... pro
Answer by Kaustoul · Mar 10, 2019 at 03:02 PM
FIXED: Just removed UnityAds.arr from Assets/Plugins/Android
Your answer
Follow this Question
Related Questions
2D Sprite Package has a compile error that doesn't go away. How does one get rid of it? 0 Answers
Build completed with a result of 'Failed'. 0 Answers
Build error Execution failed for task ':packageReleaseBundle'. 0 Answers
Copying assembly from directory Temp to Library/ScriptAssemblies failed 1 Answer