Jenkins Execution failed for task ':app:mergeDebugResources' - android

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms- 1\files-1.1\android.joda-
2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_rome:error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_italy.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms1\files-1.1\play-services-base-15.0.1.aar\e0ce73ced9f39c80bc3766966493b494\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\e0ce73ced9f39c80bc3766966493b494\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_africa_sao_tome: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_atlantic_jan_mayen: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_yerevan: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\e0ce73ced9f39c80bc3766966493b494\res\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\753b1ef644582d2cd53a88596384c519\res\layout\design_navigation_item.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\layout\abc_action_bar_up_container.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\e0ce73ced9f39c80bc3766966493b494\res\drawable\common_google_signin_btn_text_dark.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_pacific_wake: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_athens: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_mongolia.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_sofia: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_united_states_of_america.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_magadan: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable\abc_btn_default_mtrl_shape.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_costa_rica.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\color\abc_primary_text_disable_only_material_light.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_cape_verde.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-ldrtl-xxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_macao.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_sao_tome_and_principe.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\layout\abc_screen_simple_overlay_action_mode.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_papua_new_guinea.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\color\abc_primary_text_material_light.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_argentina_mendoza: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\e0ce73ced9f39c80bc3766966493b494\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_cayenne: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\layout\abc_popup_menu_header_item_layout.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-ldrtl-xhdpi-v17\abc_spinner_mtrl_am_alpha.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-mdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_africa_tunis: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_khandyga: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_africa_ouagadougou: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.0.aar\3b452b78e1c325eda027fdd2f3c59d27\res\layout\notification_template_lines_media.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\753b1ef644582d2cd53a88596384c519\res\drawable-v21\avd_show_password.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_list_focused_holo.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-mdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_015.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_brunei: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\layout\abc_tooltip.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_choibalsan: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable\abc_switch_thumb_material.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_atlantic_faroe: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_sarajevo: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_pacific_nauru: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_yakutsk: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_prague: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_europe_andorra: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_winnipeg: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-hdpi-v4\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-hdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_argentina_san_luis: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_bahrain: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_georgia.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\anim\abc_tooltip_enter.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable-xhdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_famagusta: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_dominican_republic.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\layout\abc_dialog_title_material.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\drawable\abc_spinner_textfield_background_material.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_madagascar.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_port_of_spain: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\2f7a38e210ebf1b2faaa9b2a98a97a4e\res\anim\abc_popup_exit.xml: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_regina: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_tibet.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_amman: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_africa_abidjan: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\countrycodepicker-2.1.8.aar\74603d6dbd075925a1391bd7fdd64182\res\drawable-nodpi-v4\flag_taiwan.png: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_baku: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_asia_sakhalin: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_pacific_easter: error: file not found.
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android.joda-2.9.9.aar\ea8536b41f1a30977c6eb9e2a69abab6\res\raw\joda_america_monterrey: error: file not found.
Error:
java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.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.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

finally i solved this by setting GRADLE_USER_HOME Global properties in
Jenkins > Manage jenkins > Configure System to c:/gradle-cache
so definitively it's related to file path lenght

This was a bug in an older version of AAPT2 (released in build tools). AAPT2 had trouble reading paths longer than 200 characters or so, and paths with non-ascii characters.
These issues have been fixed now, so updating your android gradle plugin to a newer version (3.2-alpha14 or newer) should do the trick (now AAPT2 is published in gmaven so just updating the AGP version is enough, no need to download new build tools).
In your build.gradle file update your android gradle plugin version and add the google() maven repository:
buildscript {
repositories {
google() // add google maven repo
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha14' // or newer
}
}
allprojects {
repositories {
google() // don't forget to add google maven here too!
jcenter()
}
}

Related

expo run:android - AAPT: error: duplicate value for resource 'attr/show_buffering' with config ''

When I run expo run:android my app crashed with the error:
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: duplicate value for resource 'attr/show_buffering' with config ''.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7014: AAPT: error: resource previously defined here.
/Users/joel/Developer/dnp/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml: AAPT: error: file failed to compile.
The iOS build works (expo run:ios).
I have tried to change minSdkVersion in my build.gradle and i've changed similar values in that file to try and fix it, with no success.
I am running:
react-native#0.64.3
expo#44.0.6

AppCenter cannot seem to find Android resources

I am building a React-Native mobile app through AppCenter and the Android version is failing in one of the last build steps:
> Task :app:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher (aka org.***.mobile:mipmap/ic_launcher) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher_round (aka org.***.mobile:mipmap/ic_launcher_round) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource style/AppTheme (aka org.***.mobile:style/AppTheme) not found.
/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:22: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.
error: failed processing manifest.
It is almost like it cannot find the files found in the Android res directory such as strings.xml
Am I missing some setting in the app/build.gradle file that is causing the build process to fail in this fashion?
Check your android manifest file, there I think you have deleted the mipmap icon, check if all ic_launcher, apptheme all are their in res folder.

Cannot link package when building APK using react-native

My react native project won't build I get the error below.
I have recently changed the package name of my app, it runs fine using react-native run-android. However when I build my apk using ./gradlew assembleRelease. I get the error. Any ideas?
What went wrong:
Execution failed for task ':react-native-youtube:verifyReleaseResources'.
1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2711: error: resource android:attr/fontStyle not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2712: error: resource android:attr/font not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2713: error: resource android:attr/fontWeight not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2714: error: resource android:attr/fontVariationSettings not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2715: error: resource android:attr/ttcIndex not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2796: error: resource android:attr/startX not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2799: error: resource android:attr/startY not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2802: error: resource android:attr/endX not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2805: error: resource android:attr/endY not found.
C:\Users\Matt\sites\tcapp\node_modules\react-native-youtube\android\build\intermediates\res\merged\release\values\values.xml:2813: error: resource android:attr/offset not found.
error: failed linking references.

Android resource linking failed: id/null

[Here's the image for my Activity][1]
Android resource linking failed
D:\Androidu2\Final-Project-ITE010\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\com\example\clearn\R.java: error: invalid symbol name 'com.example.clearn:id/null'.

Android, flutter errror : Execution failed for task ':app:mergeDebugResources'

I got an error when I installed Google-play Services tool, What is the problem? I googled and searched for a long time, but I couldn't know what is the problem.
Below is the error message
use registerGeneratedFolders(FileCollection) registerResGeneratingTask
is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use
registerGeneratedFolders(FileCollection)
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_text_disabled.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\layout-v21\notification_template_custom_big.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_text_dark_normal.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\drawable-xhdpi-v4\notification_bg_low_pressed.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_text_dark.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-hdpi-v4\common_full_open_on_phone.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-mdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-media-compat-26.1.0.aar\f6856f0a6bf11837b0484543a04fb51a\res\layout\notification_template_big_media.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\drawable-v21\notification_action_background.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\drawable\notification_bg.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-xhdpi-v4\googleg_disabled_color_18.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\layout-v21\notification_template_icon_group.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-hdpi-v4\common_google_signin_btn_text_light_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-compat-26.1.0.aar\18d5967141a97e1c47095b347e0363df\res\drawable\notification_tile_bg.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-hdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-hdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable-xxhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_text_light.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_icon_light_normal.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\drawable\common_google_signin_btn_icon_dark_normal.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\support-media-compat-26.1.0.aar\f6856f0a6bf11837b0484543a04fb51a\res\layout\notification_template_big_media_custom.xml:
error: file not found.
C:\Users\?????.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\93c2774cf3ab39eadc13fc662c2d7b36\res\color\common_google_signin_btn_tint.xml:
error: file not found.
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 13s Finished with error: Gradle build failed: 1
The issue was likely caused by the outdated google-services version configured in the Android build. What you can do here is update the Firebase plugins that you're using and run flutter clean and flutter pub get to update the installed plugins and index. If that didn't solve the issue, you can delete the /android build folder and generate a new one by running flutter create --platforms=android in the Terminal.

Categories

Resources