java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception

i can’t build my game on android phone with gradle;

my error text : 
    CommandInvokationFailure: Gradle build failed. 
    C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -classpath "C:\Program Files\Unity2017\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
    
    stderr[
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeReleaseResources'.
    > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
      Output:  E:\TaxiKhati\Temp\gradleOut\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:451: error: duplicate value for resource 'attr/theme' with config ''.
      E:\TaxiKhati\Temp\gradleOut\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:451: error: resource previously defined here.
      
      Command: C:\Users\Saeed Aliakbari\.gradle\caches	ransforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\86447f6eaa0529806ab8da21038c6fa3\aapt2-3.2.0-4818971-windows\aapt2.exe compile --legacy \
              -o \
              E:\TaxiKhati\Temp\gradleOut\build\intermediates\res\merged\release \
              E:\TaxiKhati\Temp\gradleOut\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml
      Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #1
      Output:  E:\TaxiKhati\Temp\gradleOut\google-play-services_lib\build\intermediates\packaged_res\release\values\values.xml:86:5-130:25: AAPT: error: duplicate value for resource 'attr/theme' with config ''.
          
      E:\TaxiKhati\Temp\gradleOut\google-play-services_lib\build\intermediates\packaged_res\release\values\values.xml:86:5-130:25: AAPT: error: resource previously defined here.
          
      Command: C:\Users\Saeed Aliakbari\.gradle\caches	ransforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\86447f6eaa0529806ab8da21038c6fa3\aapt2-3.2.0-4818971-windows\aapt2.exe compile --legacy \
              -o \
              E:\TaxiKhati\Temp\gradleOut\build\intermediates\res\merged\release \
              E:\TaxiKhati\Temp\gradleOut\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml
      Daemon:  AAPT2 aapt2-3.2.0-4818971-windows Daemon #1
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 35s
    Exception in thread "ForkJoinPool.commonPool-worker-3" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
    	at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
    	at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
    	at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
    	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
    	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
    ]
    stdout[
    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    WARNING: The specified Android SDK Build Tools version (22.0.1) is ignored, as it is below the minimum supported version (28.0.2) for Android Gradle Plugin 3.2.0.
    Android SDK Build Tools 28.0.2 will be used.
    To suppress this warning, remove "buildToolsVersion '22.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    :checkReleaseClasspath UP-TO-DATE
    :preBuild UP-TO-DATE
    :Batch:preBuild UP-TO-DATE
    :Batch:preReleaseBuild UP-TO-DATE
    :Batch:checkReleaseManifest
    :Batch:processReleaseManifest
    :google-play-services_lib:preBuild UP-TO-DATE
    :google-play-services_lib:preReleaseBuild UP-TO-DATE
    :google-play-services_lib:checkReleaseManifest
    :google-play-services_lib:processReleaseManifest
    :preReleaseBuild
    :Batch:compileReleaseAidl NO-SOURCE
    :google-play-services_lib:compileReleaseAidl NO-SOURCE
    :compileReleaseAidl NO-SOURCE
    :Batch:packageReleaseRenderscript NO-SOURCE
    :google-play-services_lib:packageReleaseRenderscript NO-SOURCE
    :compileReleaseRenderscript
    :checkReleaseManifest
    :generateReleaseBuildConfig
    :prepareLintJar
    :mainApkListPersistenceRelease
    :generateReleaseResValues
    :generateReleaseResources
    :Batch:compileReleaseRenderscript
    :Batch:generateReleaseResValues
    :Batch:generateReleaseResources
    :Batch:packageReleaseResources
    :google-play-services_lib:compileReleaseRenderscript
    :google-play-services_lib:generateReleaseResValues
    :google-play-services_lib:generateReleaseResources
    :google-play-services_lib:packageReleaseResources
    :mergeReleaseResources FAILED
    19 actionable tasks: 18 executed, 1 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)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    
![138228-capture.jpg|400x165](upload://s4UWIc6mJTldSqzyf4ohxBv2sOR.jpeg)

my gradle file:
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
buildscript {
repositories {
google()
jcenter()
}

	dependencies {
		classpath 'com.android.tools.build:gradle:3.2.0'
	}
}

allprojects {
   repositories {
	google()
	jcenter()
	flatDir {
		dirs 'libs'
	}

	maven {
		url 'https://dl.bintray.com/tapsellorg/maven'
	}
   }
}

// Android Resolver Repos Start
allprojects {
    repositories {
        maven {
            url "https://maven.google.com"
        }
        mavenLocal()
        jcenter()
        mavenCentral()
    }
}
// Android Resolver Repos End
apply plugin: 'com.android.application'

dependencies {
	  implementation fileTree(dir: 'libs', include: ['*.jar'])

	  implementation 'com.google.code.gson:gson:2.8.5'
	  implementation 'com.squareup.retrofit2:retrofit:2.5.0'
	  implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
	  implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
	  implementation 'ir.tapsell.sdk:tapsell-sdk-android:4.2.6'

	  implementation 'com.unity3d.ads:unity-ads:3.0.0'
	  implementation 'com.google.android.gms:play-services-ads:17.1.3'
	  implementation 'com.google.android.gms:play-services-basement:16.2.0'
	  implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
	  implementation 'com.google.android.gms:play-services-location:16.0.0'
// Android Resolver Dependencies Start
    compile 'com.android.support:appcompat-v7:27.1.1' // Assets/GameAnalytics/Editor/GameAnalyticsDependencies.xml:5
    compile 'com.google.android.gms:play-services-ads-identifier:15.0.1' // Assets/GameAnalytics/Editor/GameAnalyticsDependencies.xml:3
    compile 'com.google.android.gms:play-services-basement:15.0.1' // Assets/GameAnalytics/Editor/GameAnalyticsDependencies.xml:4
// Android Resolver Dependencies End
**DEPS**}

android {
	compileSdkVersion **APIVERSION**
	buildToolsVersion '**BUILDTOOLS**'
	compileOptions {
		sourceCompatibility JavaVersion.VERSION_1_8
		targetCompatibility JavaVersion.VERSION_1_8
	  }
	defaultConfig {
		minSdkVersion **MINSDKVERSION**
		targetSdkVersion **TARGETSDKVERSION**
		applicationId '**APPLICATIONID**'
		ndk {
            abiFilters **ABIFILTERS**
        }
		versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
	}

	lintOptions {
		abortOnError false
	}

	aaptOptions {
		noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
	}

**SIGN**
	buildTypes {
  		debug {
 			//minifyEnabled **MINIFY_DEBUG**
 			//useProguard **PROGUARD_DEBUG**
 			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  			jniDebuggable true
  		}
  		release {
 			//minifyEnabled **MINIFY_RELEASE**
 			//useProguard **PROGUARD_RELEASE**
  			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  			**SIGNCONFIG**
  		}
	}
	bundle {
        language {
            enableSplit = false
        }
        density {
            enableSplit = false
        }
        abi {
            enableSplit = true
        }
    }
}

If you’re looking to handle the exception, things are pretty straightforward. public void exceptionFix1() prepaidgiftbalance