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.
Related
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
Helllo I get this erros when I run flutter build apk --split-per-abi
I can't generate my apk. Can you help me please. thank you in advance.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':moneytextformfield:verifyReleaseResources'
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\bahal\.gradle\caches\transforms-2\files-
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5-
173:25: AAPT: erro
r: resource android:attr/fontVariationSettings not found.
C:\Users\
----------
bahal\.gradle\caches\transforms-2\files-
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5-
173:25: AAPT: erro
r: resource android:attr/ttcIndex not found.
I resolved the problem by removing the money textformfield dependency. Now I'm using the simple textFormField
I got this error
error: failed linking file resources.
But with no info about error
also, gradle tasks was not found.
Solution is to use
./gradlew build --stacktrace
with terminal this will build app and will show your error
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()
}
}