当前位置: 首页 > 面试题库 >

React Native 0.57.1​​ Android重复资源

终翰学
2023-03-14
问题内容

运行时./android/gradlew assembleRelease出现以下错误:

```*出了什么问题:任务’:app:mergeReleaseResources’的执行失败。

[drawable-xhdpi-v4 / node_modules_reactnavigation_src_views_assets_backicon]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
xhdpi/node_modules_reactnavigation_etsrc.views v4 /
node_modules_reactnavigation_src_views_assets_backicon] /用户/ Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build /生成/ res / react / release / drawable-xhdpi /
node_modules_reactnavigation_src_views_ass错误: drawable-xxhdpi-v4 /
node_modules_reactnavigation_src_views_assets_backicon]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
xxhdpi/node_modules_reactnavigation_etsrc.viewpng [drawable-xxhdpi-v4 /
node_modules_reactnavigation_src_views_assets_backicon]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/build/Generated/res/react/release/drawable-
xxhdpi/node_modules_ets_backact.png :错误:重复的资源[drawable-hdpi-v4 /
node_modules_reactnavigation_src_views_assets_backicon]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
hdpi/node_modules_assviews.reactnavigation。 [drawable-hdpi-v4 /
node_modules_reactnavigation_src_views_assets_backicon] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / Generated / res / react / release / drawable-hdpi /
node_modules_reactnavigation_s:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_marilyn_monroe_trophies_cookoo30x] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpie /
png_chares_dpi_app_assets_image。 mdpi-v4 /
app_assets_images_characters_marilyn_monroe_trophies_cookoo30x] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_images_troes:30dpi]资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_5] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi /
app_assets_images_blinking_cle。png [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_5] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_cles :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_coins_5]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
mdpi/app_assets_images_coins_5.png [drawable-mdpi-v4 /
app_assets_images_coins_5] /用户/ Ilyakar /文档/业务/开发/ My_Projects / new / Einee
/ App / android / app / build /生成/res/react/release/drawable-
mdpi/app_assets_images_coins_5.png:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_marilyn_monroe_emotions_blinking_2] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpie / app_assets_images
mdpi-v4 / app_assets_images_characters_marilyn_monroe_emotions_blinking_2] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / react /
release / drawable-mdpi / app_assets_images_acters:n_n资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_4] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi /
app_assets_learns_chars_charspng [drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_4] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release /
drawable_m_image_png_app_ets :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_happy_2] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi_png_app_ass_ets_ets
[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_happy_2] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_ass_images_char_s_on_charles_imagespng:错误:资源重复[drawable-
mdpi-v4 / app_assets_images_unlockablecharacters] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_unlockablecharacters。 png [drawable-mdpi-v4 /
app_assets_images_unlockablecharacters] /用户/ Ilyakar /文档/业务/开发/ My_Projects
/ new / Einee / App / android / app / build /生成/res/react/release/drawable-
mdpi/app_assets_images_unlockablecharacters.png :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_6] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_cles_chars_chars_chars_chars_chars_charspng [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_6]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/build/Generated/res/react/react/release/drawable-
mdpi/app_assets_cles_opas_happy_6.png :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_marilyn_monroe_trophies_cookoo3x] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res /
drawable_mallowes_dpi_app_ass_mess_m_images_png_app_assets [drawable-mdpi-v4
/ app_assets_images_characters_marilyn_monroe_trophies_cookoo3x] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / act / release / drawable-
mdpi / app_assets_images:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_happy_3] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-dpi_app_ass_assets_image
mdpi-v4 / app_assets_images_characters_leonardo_da_vinci_emotions_happy_3] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / react /
release / drawable-mdpi /
app_assets_vins_png_e_speet_happys_png_e_ss_chars:_chars_charers资源[drawable-
mdpi-v4 / app_assets_images_characters_leonardo_da_vinci_emotions_angry_5] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / src / main / res / drawable-mdpi /
app_assets_dason_chars_charspng [drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_5] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release /
drawable_m_images_png_app_ets :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_marilyn_monroe_emotions_blinking_3] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-
m_e_player_m_n_images_png_app_ass_e [drawable-mdpi-v4 /
app_assets_images_characters_marilyn_monroe_emotions_blinking_3] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / generated / res / act / release / drawable-
mdpi / app_assets_imagespng:错误:资源重复[drawable-mdpi-v4 /
app_assets_images_coinsmodal_mostpopularlabel] / Users / Ilyakar / Documents
/ Business / Development / My_Projects / new / Einee / App / android / app /
src / main / res / drawable-mdpi /
app_assets_images_coinsmodal_mostpopularlabel png [drawable-mdpi-v4 /
app_assets_images_coinsmodal_mostpopularlabel] /用户/ Ilyakar /文档/业务/开发/
My_Projects / new / Einee / App / android / app / build /生成/ res / react /
release / drawable-mdpi / app_assets_images_coinspng_mostpopularlabel。
:错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_4] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi /
app_assets_imagespng [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_4] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_cles_opas_images :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_coins_4]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
mdpi/app_assets_images_coins_4.png [drawable-mdpi-v4 /
app_assets_images_coins_4] /用户/ Ilyakar /文档/业务/开发/ My_Projects / new / Einee
/ App / android / app / build /生成/res/react/release/drawable-
mdpi/app_assets_images_coins_4.png:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_napoleon_trophies_cookoo30x] / Users / Ilyakar
/ Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_chars_okos_chars_chars_phis_chars_chars_phis_na_ss_chars_phis_30
mdpi-v4 / app_assets_images_characters_napoleon_trophies_cookoo30x] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_images_okostophion_png:资源[drawable-mdpi-v4 /
app_assets_images_earthbg] /用户/ Ilyakar / Documents / Business / Development
/ My_Projects / new / Einee / App / android / app / src / main / res /
drawable-mdpi / app_assets_images_earthbg。png [drawable-mdpi-v4 /
app_assets_images_earthbg] / Users / Ilyakar / Documents / Business /
Develop / My_Projects / new / Einee / App / android / app / build
/生成/res/react/release/drawable-mdpi/app_assets_images_earthbg.png
:错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_einee_emotions_happy_6] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi / app_assets_happy_6。
[drawable-mdpi-v4 / app_assets_images_characters_einee_emotions_happy_6] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / release /
drawable-mdpi / app_assets_nees_png:_happy_6。错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_einee_trophies_angry10x] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_troyes_png(_png) mdpi-v4 /
app_assets_images_characters_einee_trophies_angry10x] /用户/ Ilyakar
/文档/业务/开发/ My_Projects / new / Einee / App / android / app / build /生成/ res
/ react / release / drawable-mdpi /
app_assets_images_characters_einee_png:资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_trophies_3conversations] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / src / main / res / drawable-mdpi /
app_assets_phis_ardos_chars_charspng [drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_trophies_3conversations] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / release /
drawable_mdpi / png_con_ations_chars_png_tro :错误:重复的资源[drawable-mdpi-v4
/ app
assets_images_characters_napoleon_trophies_cookoo10x] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi / app_assets_phis
[drawable-mdpi-v4 /
app_assets_images_characters_napoleon_trophies_cookoo10x] / Users / Ilyakar
/ Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / Generated / res / react / react / release /
drawable-mdpi /
app_assets_images_chars_chars_chars_chars_okos10_x错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_einee_emotions_angry_2] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_nees_chars。 drawable-mdpi-v4 /
app_assets_images_characters_einee_emotions_angry_2] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / Generated / res / react / release / drawable-mdpi /
app_assets_images_png:错误的。 :重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_napoleon_profile] / Users / Ilyakar / Documents
/ Business / Development / My_Projects / new / Einee / App / android / app /
src / main / res / drawable-mdpi /
app_assets_images_characters_napoleon_profile。png [drawable-mdpi-v4 /
app_assets_images_characters_napoleon_profile] /用户/ Ilyakar /文档/业务/开发/
My_Projects / new / Einee / App / android / app / build / Generated / res /
react / release / drawable-mdpi /
app_assets_images_characters_napoleonprofile :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_einee_emotions_happy_4] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi / app_assets_happy_4。
[drawable-mdpi-v4 / app_assets_images_characters_einee_emotions_happy_4] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / release /
drawable-mdpi / app_assets_nees_png:_happy_4。错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_einee_trophies_angry30x] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_troyes_png(30x) mdpi-v4 /
app_assets_images_characters_einee_trophies_angry30x] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generated / res / react / release / drawable-mdpi /
app_assets_images_characters_einee_png:错误:资源[drawable-mdpi-v4 /
app_assets_images_coins_6] /用户/ Ilyakar / Documents / Business / Development
/ My_Projects / new / Einee / App / android / app / src / main / res /
drawable-mdpi / app_assets_images_coins_6。png [drawable-mdpi-v4 /
app_assets_images_coins_6] / Users / Ilyakar / Documents / Business /
Develop / My_Projects / new / Einee / App / android / app / build
/生成/res/react/release/drawable-mdpi/app_assets_images_coins_6.png
:错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_6] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi / app_assets_images
[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_blinking_6] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / react / release /
drawable-mdpi /
app_assets_images_chars_chars_chars_chars_chars_chars_chars_opa_e_s_sings_char_s_links_acts_chars_single_links_6错误:重复的资源[drawable-
mdpi-v4 / app_assets_images_characters_einee_bg] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_characters_einee_bg。 mdpi-v4 /
app_assets_images_characters_einee_bg] /用户/ Ilyakar / Documents / Business /
Development / My_Projects / new / Einee / App / android / app / build
/生成/res/react/release/drawable-
mdpi/app_assets_images_characters_einee_bge.jpg:错误:资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_cookoo_2] / Users / Ilyakar
/ Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_images_okoacto_cles。png [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_cookoo_2] / Users / Ilyakar
/ Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generation / res / react / release / drawable-mdpi /
app_assets_cles_chars_chars_chars :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_blinking_3] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res /
draw_act_e_char_s_chars_chars_des_charts_d_on_images_ardopng [drawable-
mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_blinking_3] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / act / release / drawable-
png_char_da_vin_b_image_app_ass :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_4] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_cles_chars_chars_chars [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_4] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generation / res / react / release / drawable-mdpi /
app_assets_images_opas_png错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_angry_2] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-drawable-mdpi /
app_assets_images_trys_characters mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_angry_2] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generated / res / react / release / drawable-mdpi /
app_assets_images_characters_cleopatra_e:错误:资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_trophies_allconversations1x]
/ Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / src / main / res / drawable-mdpi /
app_assets_on_chares_on_chares_on_charts_on_charts_on_charts_on_charts_on_charts_on_charts_on_charts_on_charles_on_charles_on_charles_on_charts_on_charles_on_on_charles_on_charles_onpng
[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_trophies_allconversations1x]
/ Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / release /
drawable_png_phis_ardos_images_dpis :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_coinsmodal_coins500] / Users / Ilyakar / Documents /
Business / Development / My_Projects / new / Einee / App / android / app /
src / main / res / drawable-mdpi / app_assets_images_coinsmodal_coins500。
[drawable-mdpi-v4 / app_assets_images_coinsmodal_coins500] /用户/ Ilyakar
/文档/业务/开发/ My_Projects / new / Einee / App / android / app / build
/生成/res/react/release/drawable-
mdpi/app_assets_images_coinsmodal_coins500.png:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_angry_3] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_assets_cles_images_charrys mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_angry_3] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generated / res / react / release / drawable-mdpi /
app_assets_images_chars_ryopa_europe:资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_5]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/src/main/res/drawable-
mdpi/app_assets_images_characters_cleopatra.compng [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_happy_5] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / Generated / res / react / react / release /
drawable-mdpi / app_assets_cles_opa_e5_png :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_blinking_2] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res /
drawable_act_b_char_png_char_png_char_png_app_ass [drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_blinking_2] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / act / release / drawable-
mdpi / app_assets_imagespng:错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_cookoo_3] / Users / Ilyakar
/ Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpi /
app_ass_act_image_cle_opa_eco_act_image_cle_opa_act_image_act_act_image_act_image_act_act_image_act_image_act_image_act_act_image_act_image_act_act_image_act_image_act_image_act_image_act_image_act_act_image_act_image_act_image_act_image_act_image_act_act_image_act
___对象png [drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_emotions_cookoo_3]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/build/Generated/res/react/release/drawable-
mdpi/app_assets_cles.opas :错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_einee_trophies_angry100x] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / src / main / res / drawable-mdpiei /
app_assets_images_charrypng [drawable-mdpi-v4 /
app_assets_images_characters_einee_trophies_angry100x]
/Users/Ilyakar/Documents/Business/Development/My_Projects/new/Einee/App/android/app/build/Generated/res/react/release/drawable-
mdpi/app_assets_troyes_nees.charly :错误:资源重复[drawable-mdpi-v4 /
app_assets_images_characters_donald_trump_bg] / Users / Ilyakar / Documents
/ Business / Development / My_Projects / new / Einee / App / android / app /
src / main / res / drawable-mdpi / app_assets_images_jpgacters。 [drawable-
mdpi-v4 / app_assets_images_characters_donald_trump_bg] / Users / Ilyakar /
Documents / Business / Development / My_Projects / new / Einee / App /
android / app / build / generation / res / react / release / drawable-mdpi /
app_assets_images_jpgs_jpg-characters_donald。错误:重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_cleopatra_trophies_allconversations3x] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi /
app_assets_cles_chars_all mdpi-v4 /
app_assets_images_characters_cleopatra_trophies_allconversations3x] / Users
/ Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release / drawable-
mdpi / app_assets_images_allversphis_opas:png重复的资源[drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_6] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / src / main / res / drawable-mdpi /
app_ass_assets_image mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_6] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / generated / res / react / release / drawable-
mdpi / app_assets_images_ardo:_app_assets_images_ardo:资源```png [drawable-
mdpi-v4 / app_assets_images_characters_leonardo_da_vinci_emotions_angry_6] /
Users / Ilyakar / Documents / Business / Development / My_Projects / new /
Einee / App / android / app / build / Generated / res / react / release /
drawable_m_images_png_app_ets。 :错误:资源重复png [drawable-mdpi-v4 /
app_assets_images_characters_leonardo_da_vinci_emotions_angry_6] / Users /
Ilyakar / Documents / Business / Development / My_Projects / new / Einee /
App / android / app / build / Generated / res / react / release /
drawable_m_images_png_app_ets。 :错误:资源重复

我已经在React NativeDuplicate资源上找到的答案中尝试了以下方法,但成功率为零:

尝试1:

“使用rm -rf android / app / src / main / res / drawable- *删除可绘制对象并在Android
Studio上生成APK对我有用。”

尝试2:

“ rm -rf android / app / src / main / res / drawable- *

react-native包–platform android –dev否–entry-file index.js –bundle-output
android / app / src / main / assets / index.android.bundle –assets-dest
android / app / src / main / res /

然后再次编译android react-native run-android“

还有其他想法吗?


问题答案:

这是简单的解决方案:

  1. 删除 构建 内部 的Android /应用程序 文件夹
  2. 删除 构建 内部 的android 文件夹
  3. rm -rf $HOME/.gradle/caches/
  4. 打开build.gradle-> android / app / build.gradle
  5. 评论这行

//apply from: "../../node_modules/react-native/react.gradle"

  1. index.android.bundle从资产文件夹中删除文件,然后使用重新创建 react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

  2. 运行react-native run-android 运行react-native run-android --variant=release

快乐编码



 类似资料:
  • 我很好地创建了project flavors,Android Studio在我的设备上安装了两个不同的应用程序,没关系。 但是,我正在尝试从HTML中的drawable添加一个图像 这在口味中不再起作用。在没有口味的原始项目中,它起到了作用。 我必须做些什么才能将资源也包含在项目风格中吗?

  • 运行时,我得到以下错误: ```*错误:任务':app:MergeReleAseResources'执行失败。 我已经从React Native Duplicate resources上找到的答案中尝试了以下方法,但没有成功: 尝试1: “用rm-rf Android/app/src/main/res/drawable-*删除Drawable,并在Android Studio上生成APK对我起到了

  • 这将引发以下错误: 注意:当您生成一个没有任何PNG映像的时,您不会得到任何错误,它将为您创建。 这是其他文件的代码。 以下是其他细节 使用

  • 我最近开始在我所有的项目中遇到这个问题。当我的索引页加载其中包含对jQuery源文件的引用时,我的控制台记录这个错误:。 这完全不影响我的应用程序,但是每当我打开控制台时,看到它真的很烦人。有人知道这是从哪里来的吗? 编辑:注意,我没有显式引用.map文件,我只是指向

  • com.Android.builder.internal.aapt.v2.aapt2exception:Android资源编译失败/users/username/.gradle/caches/transforms-2/files-2.1/94 a628954aabd306de764f6ff2843371/res/values/values.xml:8:5-35:25:aapt:error:资源'a