Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Android Gradle Build Failed

Discussion in 'Android' started by ysleungrockman, Oct 23, 2018.

  1. ysleungrockman

    ysleungrockman

    Joined:
    Mar 16, 2014
    Posts:
    31
    I tried to update my Unity version from 2017.1.1 to 2018.2.13 for my old project today. While trying to build the Android apk, I encountered this error:
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. C:/Program Files/Java/jdk1.8.0_191\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2018.2.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleDebug"
    3.  
    4. stderr[
    5.  
    6. FAILURE: Build failed with an exception.
    7.  
    8. * What went wrong:
    9. Execution failed for task ':appcompat:packageDebugResources'.
    10. > There were multiple failures while executing work items
    11.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    12.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_paste_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    13.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    14.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_copy_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    15.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    16.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_share_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    17.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    18.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_copy_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    19.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    20.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_paste_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    21.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    22.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_ab_back_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    23.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    24.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_ab_back_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    25.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    26.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_share_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    27.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    28.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_cut_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    29.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    30.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_ab_back_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    31.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    32.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_voice_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    33.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    34.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_clear_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    35.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    36.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_go_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    37.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    38.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_voice_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    39.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    40.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_clear_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    41.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    42.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_cut_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    43.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    44.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_overflow_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    45.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    46.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_ab_back_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    47.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    48.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_ab_back_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    49.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    50.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_voice_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    51.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    52.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_paste_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    53.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    54.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_voice_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    55.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    56.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_selectall_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    57.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    58.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_selectall_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    59.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    60.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_selectall_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    61.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    62.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_clear_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    63.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    64.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_paste_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    65.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    66.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_share_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    67.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    68.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_copy_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    69.   > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    70.      > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_go_search_api_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not supported by build-time PNG generation. See http://developer.android.com/tools/help/vector-asset-studio.html for details.
    71.    > A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
    72.       > Error while processing C:\Users\3Circles\Documents\Unity\CirclAppSourceCode Security new version\Temp\gradleOut\appcompat\res\drawable\abc_ic_menu_cut_material.xml : Can't process attribute android:fillColor="@android:color/white": references to other resources are not su<message truncated>
    By looking at the error messages, it looks like the problem was from a line which is
    android:fillColor="@android:color/white"
    from multiple xml files in the gradleOut folder. However, since the gradleOut folder was generated by Unity itself when I built the apk, how do I fix it? Is it a bug of Unity? Or are my JDK, SDK or NDK not in correct versions?
     
  2. ysleungrockman

    ysleungrockman

    Joined:
    Mar 16, 2014
    Posts:
    31
    No one has any idea? I guess it's a bug then...