- Home /
Strange Android Gradle build error
We have an Android project that used to build well using the Internal build system, but after adding in some more plugins, we had to switch to Gradle. We faced a couple issues due to this change, but were able to fix it. This one, however, leads us to a dead end.
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_151\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[
\\?\D:\(ProjectPath)\Temp\gradleOut\AN_Res\build\intermediates\manifests\aapt\release\AndroidManifest.xml:22:23-41: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon').
\\?\D:\(ProjectPath)\Temp\gradleOut\AN_Res\build\intermediates\manifests\aapt\release\AndroidManifest.xml:23:24-40: AAPT: No resource found that matches the given name (at 'label' with value '@string/app_name').
\\?\D:\(ProjectPath)\Temp\gradleOut\AN_Res\build\intermediates\manifests\aapt\release\AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon').
\\?\D:\(ProjectPath)\Temp\gradleOut\AN_Res\build\intermediates\manifests\aapt\release\AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').
We have looked all over for a solution to this problem, but we are unable to do so thus far. Note that we have built apps using Gradle before, and this particular issue has never happened before in our other projects.
Does anyone have any idea what is causing this?
Your answer
Follow this Question
Related Questions
Android build crashes on start up. 2 Answers
How to increase number of supported devices when publishing to the google play store 0 Answers
CommandInvokationFailure: Gradle build failed. unity 2019.4.22 1 Answer
com.android.tools.r8 compilation error please help 0 Answers
multiple apks to match certain devices 0 Answers