[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'.
Related
I'm trying to develop an app with android studio 4.1.1 and it has almost done but there is an error in the value.xml file from appcompat 1.2.0 and material 1.2.1.
after i hit the build project to device these errors shows up in the log.
Here is some info about my config:
compile sdk version : 30
min sdk version : 21
buildToolsVersion : 30.0.2
ndkVersion : 21.0.6113669
Error codes:
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2539:5-2577:23: AAPT: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2539:5-2577:23: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2578:5-2597:23: AAPT: error: duplicate value for resource 'attr/badgeGravity' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2578:5-2597:23: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2598:5-2631:23: AAPT: error: duplicate value for resource 'attr/fabAlignmentMode' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\material-1.2.1\res\values\values.xml:2598:5-2631:23: AAPT: error: resource previously defined here.
and :
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1692:5-1774:25: AAPT: error: duplicate value for resource 'attr/navigationMode' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1692:5-1774:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1692:5-1774:25: AAPT: error: duplicate value for resource 'attr/displayOptions' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1692:5-1774:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1819:5-1848:25: AAPT: error: duplicate value for resource 'attr/tintMode' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1819:5-1848:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1849:5-1875:25: AAPT: error: duplicate value for resource 'attr/tickMarkTintMode' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1849:5-1875:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1885:5-1959:25: AAPT: error: duplicate value for resource 'attr/autoSizeTextType' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1885:5-1959:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1885:5-1959:25: AAPT: error: duplicate value for resource 'attr/drawableTintMode' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1885:5-1959:25: AAPT: error: resource previously defined here.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1960:5-2356:25: AAPT: error: duplicate value for resource 'attr/actionBarSize' with config ''.
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1960:5-2356:25: AAPT: error: resource previously defined here.
and also :
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\**\.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\appcompat-1.2.0\res\values\values.xml:1692:5-1774:25: AAPT: error: duplicate value for resource 'attr/navigationMode' with config ''.
my values.xml file link in zip file:
https://www.mediafire.com/file/ewu4d91g5ovl4o0/values.zip/file
Just keep reducing the version of the dependency mentioned in the path In your case its: C:\Users.gradle\caches\transforms-2\files-2.1\a0e1355bd10f51465d015cd38c7b32cb\ material-1.2.1 \res\values\values.xml andC:\Users.gradle\caches\transforms-2\files-2.1\3a673510e337bf69bd102ca32d6fbb05\ appcompat-1.2.0 \res\values\values.xml So reducing the version number for material-1.2.1 to material-1.2.0 and appcompat-1.2.0 to 1.1.0 might work. If it doesn't work then keep on reducing the version number and re-build the project each time until it works.For me it works by setting material-1.2.1 to material-1.0.0
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.
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.
I am getting this error alter connecting my flutter app to the firebase. I dont know whats the reason but I am getting this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution
failed for task :app:process Debug Resources.
Android resource linking failed
In my case i was getting this error :
Execution failed for task ':google_sign_in:verifyReleaseResources'.
with follwing error :
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:197: error: resource android:attr/fontVariationSettings not f
ound.
D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:198: error: resource android:attr/ttcIndex not found.
error: failed linking references.
So i updated my google_sign_in sdk to : google_sign_in 4.0.1+1 from google_sdk
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()
}
}