CommandInvokationFailure: Gradle build failed. D:/JDK\bin\java.exe -classpath "D:\STOP\Editor\2017.4.36f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
stderr[
FAILURE: Build failed with an exception.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml:35: error: resource mipmap/app_icon (aka com.DefaultCompany.ProductName:mipmap/app_icon) not found. error: failed processing manifest. Command: C:\Users\user.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\6aafa106c27aaf4510490416002aab59\aapt2-3.2.0-4818971-windows\aapt2.exe link --proto-format\ -I\ D:\SDK\SDK\platforms\android-28\android.jar\ --manifest\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\ -o\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\linked_res_for_bundle\release\bundleReleaseResources\bundled-res.ap_\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-hdpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-ldpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-mdpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-xhdpi_app_banner.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-xhdpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-xxhdpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\drawable-xxxhdpi_app_icon.png.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\values-v14_values-v14.arsc.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\values-v21_values-v21.arsc.flat\ -R\ D:\STOP\Projects\Zendy the great\Temp\gradleOut\build\intermediates\res\merged\release\values_values.arsc.flat\ --auto-add-overlay\ -0\ apk\ -0\ .unity3d\ -0\ .ress\ -0\ .resource\ -0\ .obb\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
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:
BUILD FAILED in 1m 23s ] stdout[ Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details Observed package id 'platforms;android-29' in inconsistent location 'D:\SDK\SDK\platforms\PlatformPackage.old01' (Expected 'D:\SDK\SDK\platforms\android-29') :checkReleaseClasspath :preBuild UP-TO-DATE :extractProguardFiles :preReleaseBuild :compileReleaseRenderscript :generateReleaseResValues :generateReleaseResources :mergeReleaseResources :checkReleaseManifest :createReleaseCompatibleScreenManifests :mainApkListPersistenceRelease :processReleaseManifest :bundleReleaseResources FAILED 11 actionable tasks: 11 executed ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at :0) UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1[T] progress) (at :0) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1[T] progress) (at :0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
My AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
="" package="com.DefaultCompany.ProductName" android:installlocation="auto" android:versioncode="1" android:versionname="0.1">
<uses-sdk
android:minsdkversion="28"
="" android:targetsdkversion="28">
<supports-screens
android:anydensity="true"
="" android:largescreens="true" android:normalscreens="true" android:smallscreens="true" android:xlargescreens="true">
<uses-feature android:glesversion="0x00020000">
<uses-permission android:name="android.permission.INTERNET">
<uses-feature
android:name="android.hardware.touchscreen"
="" android:required="false">
<uses-feature
android:name="android.hardware.touchscreen.multitouch"
="" android:required="false">
<uses-feature
android:name="android.hardware.touchscreen.multitouch.distinct"
="" android:required="false">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE">
<application
android:banner="@drawable/app_banner"
="" android:icon="@mipmap/app_icon" android:isgame="true" android:label="@string/app_name" android:theme="@style/UnityThemeSelector">
<activity
android:name="com.unity3d.player.UnityPlayerActivity"
="" android:configchanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection" android:hardwareaccelerated="false" android:label="@string/app_name" android:launchmode="singleTask" android:screenorientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN">
<category android:name="android.intent.category.LAUNCHER">
<meta-data
android:name="unityplayer.UnityActivity"
="" android:value="true">
<meta-data
android:name="unity.build-id"
="" android:value="31bf1446-7264-4e43-bfd9-c93eb7060a1d">
<meta-data
android:name="unity.splash-mode"
="" android:value="0">
<meta-data
android:name="unity.splash-enable"
="" android:value="True">
<meta-data
android:name="android.max_aspect"
="" android:value="2.1">
<activity
android:name="com.unity3d.ads.adunit.AdUnitActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="true" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.ads.adunit.AdUnitTransparentActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="true" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.ads.adunit.AdUnitTransparentSoftwareActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="false" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.ads.adunit.AdUnitSoftwareActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="false" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.services.ads.adunit.AdUnitActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="true" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.services.ads.adunit.AdUnitTransparentActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="true" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.services.ads.adunit.AdUnitTransparentSoftwareActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="false" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
<activity
android:name="com.unity3d.services.ads.adunit.AdUnitSoftwareActivity"
="" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:hardwareaccelerated="false" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
'
What I have tried:
I was looking for a solution to open .flat file and was clearing the cache of il2cpp. But I didn't find anything.