Building Gradle porject fail : while Building my project when it reach (Task mergeReleaseAssets) i get this erorr com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/content/res/TypedArryUtils; See the Console for details

----i don't know what cause this my jdk8u-131 i tried 8u161 and i don't know about SDK maybe its api level cuz my phone api level 27 Oreo and its not on unity and i did't Download Android 8.0 (Oreo) on SDK and i'm not using In-App PURCHASING just normal ads from unity

and for GoggleMobileAds i download it but i did't use it on project cuz it hurt my head and i used normal ads from unity

this is the error on console

` CommandInvokationFailure: Gradle build failed. 
 C:/Program Files/Java/jdk1.8.0_131\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
 
 stderr[
 
 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.dex.DexException: Multiple dex files define Landroid/support/v4/content/res/TypedArrayUtils;
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
 BUILD FAILED in 34s
 ]
 stdout[
 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.
 :preBuild UP-TO-DATE
 :preReleaseBuild UP-TO-DATE
 :checkReleaseManifest
 :preDebugBuild UP-TO-DATE
 :prepareAdmoblibReleaseLibrary
 :prepareAppcompatV72610Library
 :prepareComAndroidSupportSupportCompat2520Library
 :prepareComAndroidSupportSupportCoreUi2520Library
 :prepareComAndroidSupportSupportCoreUtils2520Library
 :prepareComAndroidSupportSupportFragment2520Library
 :prepareComAndroidSupportSupportMediaCompat2520Library
 :prepareComAndroidSupportSupportV42520Library
 :prepareComGoogleAndroidGmsPlayServicesAds1180Library
 :prepareComGoogleAndroidGmsPlayServicesAdsLicense1180Library
 :prepareComGoogleAndroidGmsPlayServicesAdsLite1180Library
 :prepareComGoogleAndroidGmsPlayServicesAdsLiteLicense1180Library
 :prepareComGoogleAndroidGmsPlayServicesBasement1180Library
 :prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
 :prepareComGoogleAndroidGmsPlayServicesGass1180Library
 :prepareComGoogleAndroidGmsPlayServicesGassLicense1180Library
 :preparePlayServicesAds1180Library
 :preparePlayServicesAdsLite1180Library
 :preparePlayServicesBasement1180Library
 :preparePlayServicesGass1180Library
 :prepareSupportCompat2610Library
 :prepareSupportV42610Library
 :prepareUnityAdapter2100Library
 :prepareUnityAdsLibrary
 :prepareUnityAdsSdk21Library
 :GoogleMobileAdsPlugin:preBuild UP-TO-DATE
 :GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE
 :GoogleMobileAdsPlugin:checkReleaseManifest
 :GoogleMobileAdsPlugin:prepareReleaseDependencies
 :GoogleMobileAdsPlugin:compileReleaseAidl
 :GoogleMobileAdsPlugin:compileReleaseNdk NO-SOURCE
 :GoogleMobileAdsPlugin:compileLint
 :GoogleMobileAdsPlugin:copyReleaseLint NO-SOURCE
 :GoogleMobileAdsPlugin:mergeReleaseShaders
 :GoogleMobileAdsPlugin:compileReleaseShaders
 :GoogleMobileAdsPlugin:generateReleaseAssets
 :GoogleMobileAdsPlugin:mergeReleaseAssets
 :GoogleMobileAdsPlugin:mergeReleaseProguardFiles UP-TO-DATE
 :GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE
 :GoogleMobileAdsPlugin:compileReleaseRenderscript
 :GoogleMobileAdsPlugin:generateReleaseResValues
 :GoogleMobileAdsPlugin:generateReleaseResources
 :GoogleMobileAdsPlugin:packageReleaseResources
 :GoogleMobileAdsPlugin:processReleaseManifest
 :GoogleMobileAdsPlugin:generateReleaseBuildConfig
 :GoogleMobileAdsPlugin:processReleaseResources
 :GoogleMobileAdsPlugin:generateReleaseSources
 :GoogleMobileAdsPlugin:incrementalReleaseJavaCompilationSafeguard
 :GoogleMobileAdsPlugin:javaPreCompileRelease
 :GoogleMobileAdsPlugin:compileReleaseJavaWithJavac
 :GoogleMobileAdsPlugin:processReleaseJavaRes NO-SOURCE
 :GoogleMobileAdsPlugin:transformResourcesWithMergeJavaResForRelease
 :GoogleMobileAdsPlugin:transformClassesAndResourcesWithSyncLibJarsForRelease
 :GoogleMobileAdsPlugin:mergeReleaseJniLibFolders
 :GoogleMobileAdsPlugin:transformNativeLibsWithMergeJniLibsForRelease
 :GoogleMobileAdsPlugin:transformNativeLibsWithStripDebugSymbolForRelease
 :GoogleMobileAdsPlugin:transformNativeLibsWithSyncJniLibsForRelease
 :GoogleMobileAdsPlugin:bundleRelease
 :prepareReleaseDependencies
 :compileReleaseAidl UP-TO-DATE
 :compileReleaseRenderscript UP-TO-DATE
 :generateReleaseBuildConfig UP-TO-DATE
 :generateReleaseResValues UP-TO-DATE
 :generateReleaseResources UP-TO-DATE
 :mergeReleaseResources UP-TO-DATE
 :processReleaseManifest
 :processReleaseResources
 :generateReleaseSources
 :incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
 :javaPreCompileRelease
 :compileReleaseJavaWithJavac UP-TO-DATE
 :compileReleaseNdk NO-SOURCE
 :compileReleaseSources UP-TO-DATE
 :lintVitalRelease
 :mergeReleaseShaders UP-TO-DATE
 :compileReleaseShaders UP-TO-DATE
 :generateReleaseAssets UP-TO-DATE
 :mergeReleaseAssets
 :transformClassesWithDexForRelease FAILED
 66 actionable tasks: 56 executed, 10 up-to-date
 ]
 exit code: 1
 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
 UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
 Rethrow as GradleInvokationException: Gradle build failed
 UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
 UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()`