- Home /
Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define
I installed mopub plugin and then adcolony and then facebook and got this message some one please help me stderr[ Dex: Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:660) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:615) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:597) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170) at com.android.dx.merge.DexMerger.merge(DexMerger.java:197) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:503) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:333) 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)
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':transformClassesWithDexForRelease'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\transforms\dex\release\folders\1000\1f\main C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_6dea87c6ddc6ba0ec526e00aef221551f3505f83.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\release_5d69398a2f90c3a9e489b373031d203383989c20.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_31fa9b562582d2c0dfe24be31055f1afb79d3be7.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_c27e793e0123cef24c9cf115d78eb0c7b8abdeaf.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_d8b9d7658b97dd54e6c5ffd9b018a903972ea453.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\support-annotations-24.0.0_12b723b26eb10eb1e1625d6c447a640810e0c07b.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_66e61907411987f1cb88b4b1f48b0ee93bb8c006.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_e997fd7ddd8e56f56a92c82e2c340dc468205913.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-unity-plugins_52c3af56929d3e2884d045b4bb85b90eb2b190a6.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_940db9c5431e1f4e8432772b2940f3e0a8ab7086.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_1333fd8a26cfa96baa92ad0a54302124b66958e6.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_f9af599894e71f0b7f489fcca491d4ea7216bf0a.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_fba1ed6fb3ccd9f02391fe05e1f8a04a0b487bce.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-sdk-banner_4b0f41d8f738f1228d8ae93e2dd66d3bc9b64b71.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-sdk-rewardedvideo_f04e1c7bd2b8f6f35e3720f02d40d25c632b6886.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\unity-classes_5df3f362cb531e5ee8b240d215ae2b124598b80c.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_96706c94f2dd5355c5ea4c0c29aed2df8a7eb154.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_055c2e1c0d1a660e58fa4ec5a1cd8bba50724c6c.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_d99c133434ee28be3c27a6605eae89cffa2efeb9.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_84becf39d9fe8f9e38b3a0c4f8117424eb003a4b.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\AdColonyUnityWrapper_b02af88d55833949237bff80053eca45d600de15.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_e32484546385c78f67a0f65057d80da3335f4ffe.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_20992278353d584945f130d6b12383d9f74cfeeb.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\android-support-v4-23.1.1_cd947bd9b90158bbd9dba49e1323c382c670957e.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_a4e74e61382e452202bf05140f6775572eee2fd2.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\internal_impl-24.0.0_8cefdd33c58d3e569e9d2833a8bc6cd75a51f353.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_b329c936d90980a15d95ca24c315e02084ebc541.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\AdColony_4312b0aad1ecbb7f1501c6b2bc9ac0485d6c78eb.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-volley-2.0.0_20d8a02652caa8740d695be17c69f36433b29819.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_33c65d79f1f258bc5322972a383db3364ffd1725.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\classes_a3bfacfbe60dfb606cd2bf4e75e2380c1863b001.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-sdk-base_725b7d64e90ad9f27b139f5bb6648aa062040829.jar C:\Users\Admin\Desktop\LDjam-Running-Out-of-power-Save-My-Plane--master\LDjam-Running-Out-of-power-Save-My-Plane--master\Temp\gradleOut\build\intermediates\pre-dexed\release\mopub-sdk-interstitial_ed0b7da2413201ca33b2865b7179d6c8cd17ac98.jar}
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 2m 0s ] stdout[ Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
Observed package id 'tools' in inconsistent location 'C:\Users\Admin\AppData\Local\Android\Sdk\tools1234' (Expected 'C:\Users\Admin\AppData\Local\Android\Sdk\tools') Already observed package id 'tools' in 'C:\Users\Admin\AppData\Local\Android\Sdk\tools'. Skipping duplicate at 'C:\Users\Admin\AppData\Local\Android\Sdk\tools1234' Observed package id 'tools' in inconsistent location 'C:\Users\Admin\AppData\Local\Android\Sdk\tools1234' (Expected 'C:\Users\Admin\AppData\Local\Android\Sdk\tools') Already observed package id 'tools' in 'C:\Users\Admin\AppData\Local\Android\Sdk\tools'. Skipping duplicate at 'C:\Users\Admin\AppData\Local\Android\Sdk\tools1234' NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead. The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead. The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead. NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
:preBuild UP-TO-DATE :preReleaseBuild UP-TO-DATE :checkReleaseManifest :preDebugBuild UP-TO-DATE :prepareAdsReleaseLibrary :prepareExoplayerCoreLibrary :prepareExoplayerDashLibrary :preparePlayServicesAds980Library :preparePlayServicesAdsLite980Library :preparePlayServicesBase980Library :preparePlayServicesBasement980Library :preparePlayServicesClearcut980Library :preparePlayServicesGass980Library :preparePlayServicesTasks980Library :prepareRecyclerviewV7Library :prepareSupportCompatLibrary :prepareSupportCoreUiLibrary :prepareSupportCoreUtilsLibrary :prepareSupportV42400Library :prepareSupportV4Library :AdColony:preBuild UP-TO-DATE :AdColony:preReleaseBuild UP-TO-DATE :AdColony:checkReleaseManifest :AdColony:prepareReleaseDependencies :AdColony:compileReleaseAidl :AdColony:compileReleaseNdk NO-SOURCE :AdColony:compileLint :AdColony:copyReleaseLint NO-SOURCE :AdColony:mergeReleaseShaders :AdColony:compileReleaseShaders :AdColony:generateReleaseAssets :AdColony:mergeReleaseAssets :AdColony:mergeReleaseProguardFiles :AdColony:packageReleaseRenderscript NO-SOURCE :AdColony:compileReleaseRenderscript :AdColony:generateReleaseResValues :AdColony:generateReleaseResources :AdColony:packageReleaseResources :AdColony:processReleaseManifest :AdColony:generateReleaseBuildConfig :AdColony:processReleaseResources :AdColony:generateReleaseSources :AdColony:incrementalReleaseJavaCompilationSafeguard :AdColony:javaPreCompileRelease :AdColony:compileReleaseJavaWithJavac :AdColony:processReleaseJavaRes NO-SOURCE :AdColony:transformResourcesWithMergeJavaResForRelease :AdColony:transformClassesAndResourcesWithSyncLibJarsForRelease :AdColony:mergeReleaseJniLibFolders :AdColony:transformNativeLibsWithMergeJniLibsForRelease :AdColony:transformNativeLibsWithSyncJniLibsForRelease :AdColony:bundleRelease :mopub:preBuild UP-TO-DATE :mopub:preReleaseBuild UP-TO-DATE :mopub:checkReleaseManifest :mopub:prepareReleaseDependencies :mopub:compileReleaseAidl :mopub:compileReleaseNdk NO-SOURCE :mopub:compileLint :mopub:copyReleaseLint NO-SOURCE :mopub:mergeReleaseShaders :mopub:compileReleaseShaders :mopub:generateReleaseAssets :mopub:mergeReleaseAssets :mopub:mergeReleaseProguardFiles :mopub:packageReleaseRenderscript NO-SOURCE :mopub:compileReleaseRenderscript :mopub:generateReleaseResValues :mopub:generateReleaseResources :mopub:packageReleaseResources :mopub:processReleaseManifest :mopub:generateReleaseBuildConfig :mopub:processReleaseResources :mopub:generateReleaseSources :mopub:incrementalReleaseJavaCompilationSafeguard :mopub:javaPreCompileRelease :mopub:compileReleaseJavaWithJavac :mopub:processReleaseJavaRes NO-SOURCE :mopub:transformResourcesWithMergeJavaResForRelease :mopub:transformClassesAndResourcesWithSyncLibJarsForRelease :mopub:mergeReleaseJniLibFolders :mopub:transformNativeLibsWithMergeJniLibsForRelease :mopub:transformNativeLibsWithSyncJniLibsForRelease :mopub:bundleRelease :mopub-support:preBuild UP-TO-DATE :mopub-support:preReleaseBuild UP-TO-DATE :mopub-support:checkReleaseManifest :mopub-support:prepareReleaseDependencies :mopub-support:compileReleaseAidl :mopub-support:compileReleaseNdk NO-SOURCE :mopub-support:compileLint :mopub-support:copyReleaseLint NO-SOURCE :mopub-support:mergeReleaseShaders :mopub-support:compileReleaseShaders :mopub-support:generateReleaseAssets :mopub-support:mergeReleaseAssets :mopub-support:mergeReleaseProguardFiles :mopub-support:packageReleaseRenderscript NO-SOURCE :mopub-support:compileReleaseRenderscript :mopub-support:generateReleaseResValues :mopub-support:generateReleaseResources :mopub-support:packageReleaseResources :mopub-support:processReleaseManifest :mopub-support:generateRelease
Duplicate Android library. Like Facebook Ads with Google Play services
Facebook also contain Android library v4 something. And Google play service library plugin also have it. Delete plugins library inside facebook folder that have name "v4"
Your answer
Follow this Question
Related Questions
Cannot Convert Classes to dex format 2 Answers
Google AdMob Banner Ad shows on unity debug editor but does not show on android apk build. 0 Answers
Google Admob (V.6.1.2) crashing Android game on device built with Unity 2020.3.19 1 Answer
Using CustomUnityPlayerActivity, which inherits from UnityPlayerActivity, will cause problems. 0 Answers