Execution failed for task: app.mergeDebugResources


(soren andreasen) #1

Hello.

Having been working on Mac for a long time, I now have to start using a windows 10 PC. So I transfered my android studio projects over and downloaded android studio 3 to my pc. But, no matter what I do, I keep getting this error. Doesn’t matter which project - I can even create a brand new project and it will give me this error. Please please, any ideas how I can fix this? Here’s a complete printout of my Gradle console:

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]

Configuration on demand is an incubating feature.
Configuration ‘compile’ in project ‘:app’ is deprecated. Use ‘implementation’ instead.
Configuration ‘androidTestCompile’ in project ‘:app’ is deprecated. Use ‘androidTestImplementation’ instead.
Configuration ‘testCompile’ in project ‘:app’ is deprecated. Use ‘testImplementation’ instead.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable\abc_btn_colored_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\design-25.2.0.aar\fd220d26cce5d846a03fd4be399707ca\res\layout\design_navigation_item.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_action_bar_up_container.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_search_dropdown_item_icons_2line.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xxxhdpi-v4\abc_text_select_handle_right_mtrl_dark.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\color\abc_secondary_text_material_light.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable\abc_btn_default_mtrl_shape.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\color\abc_primary_text_disable_only_material_light.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-ldrtl-xxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_screen_simple_overlay_action_mode.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\color\abc_primary_text_material_light.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout-v11\notification_media_cancel_action.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout-v11\notification_template_big_media_narrow.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_popup_menu_header_item_layout.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-ldrtl-xhdpi-v17\abc_spinner_mtrl_am_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xxhdpi-v4\abc_ic_star_black_36dp.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-mdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable\abc_edit_text_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\notification_template_lines_media.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\select_dialog_multichoice_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_list_focused_holo.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\design-25.2.0.aar\fd220d26cce5d846a03fd4be399707ca\res\drawable-v21\avd_show_password.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\notification_bg_normal.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_000.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-mdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_015.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-mdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_screen_toolbar.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\design-25.2.0.aar\fd220d26cce5d846a03fd4be399707ca\res\drawable\design_password_eye.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\color-v23\abc_tint_btn_checkable.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\notification_bg_normal_pressed.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable\abc_list_selector_background_transition_holo_light.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable\abc_switch_thumb_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_list_pressed_holo_dark.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\anim\abc_fade_in.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\color-v23\abc_btn_colored_borderless_text_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\design-25.2.0.aar\fd220d26cce5d846a03fd4be399707ca\res\layout\design_navigation_item_separator.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\design-25.2.0.aar\fd220d26cce5d846a03fd4be399707ca\res\anim\design_snackbar_out.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-ldrtl-hdpi-v17\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-hdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-v21\notification_action_background.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\layout\abc_dialog_title_material.xml: error: file not found.

C:\Users\S?ren.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.2.0.aar\b58d6ba0346e34cd52d3b0d3aea91263\res\drawable-xhdpi-v4\abc_list_longpressed_holo.9.png: error: file not found.

Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:mergeDebugResources’.

Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

8 actionable tasks: 1 executed, 7 up-to-date


(Rene) #2

This Error is fixed in Gradle Plugin 3.2.0.
Just try to migrate to 3.2.0 in your build.gradle file by changing this line classpath 'com.android.tools.build:gradle:3.2.0-alpha11'.
Your Android Studio should do the rest