Android-studio模拟器构建失败/ Android资源链接失败

时间:2019-05-05 08:01:21

标签: android android-studio android-emulator

我是编程新手。

我只是尝试创建android模拟器,但出现此错误

Android resource linking failed
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:616: error: resource anim/abc_popup_enter (aka com.example.mydashboardsapp_django:anim/abc_popup_enter) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:617: error: resource anim/abc_popup_exit (aka com.example.mydashboardsapp_django:anim/abc_popup_exit) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:620: error: resource anim/abc_grow_fade_in_from_bottom (aka com.example.mydashboardsapp_django:anim/abc_grow_fade_in_from_bottom) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:621: error: resource anim/abc_shrink_fade_out_from_bottom (aka com.example.mydashboardsapp_django:anim/abc_shrink_fade_out_from_bottom) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:624: error: resource anim/abc_tooltip_enter (aka com.example.mydashboardsapp_django:anim/abc_tooltip_enter) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:625: error: resource anim/abc_tooltip_exit (aka com.example.mydashboardsapp_django:anim/abc_tooltip_exit) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:788: error: resource color/abc_btn_colored_borderless_text_material (aka com.example.mydashboardsapp_django:color/abc_btn_colored_borderless_text_material) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:791: error: resource color/abc_btn_colored_text_material (aka com.example.mydashboardsapp_django:color/abc_btn_colored_text_material) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:845: error: resource drawable/abc_list_selector_holo_dark (aka com.example.mydashboardsapp_django:drawable/abc_list_selector_holo_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:897: error: resource drawable/abc_list_selector_holo_dark (aka com.example.mydashboardsapp_django:drawable/abc_list_selector_holo_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:929: error: resource color/abc_background_cache_hint_selector_material_dark (aka com.example.mydashboardsapp_django:color/abc_background_cache_hint_selector_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:932: error: resource color/abc_primary_text_material_dark (aka com.example.mydashboardsapp_django:color/abc_primary_text_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:933: error: resource color/abc_primary_text_material_light (aka com.example.mydashboardsapp_django:color/abc_primary_text_material_light) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:934: error: resource color/abc_primary_text_disable_only_material_dark (aka com.example.mydashboardsapp_django:color/abc_primary_text_disable_only_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:935: error: resource color/abc_secondary_text_material_dark (aka com.example.mydashboardsapp_django:color/abc_secondary_text_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:936: error: resource color/abc_secondary_text_material_light (aka com.example.mydashboardsapp_django:color/abc_secondary_text_material_light) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:937: error: resource color/abc_secondary_text_material_dark (aka com.example.mydashboardsapp_django:color/abc_secondary_text_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:938: error: resource color/abc_secondary_text_material_light (aka com.example.mydashboardsapp_django:color/abc_secondary_text_material_light) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:939: error: resource color/abc_hint_foreground_material_dark (aka com.example.mydashboardsapp_django:color/abc_hint_foreground_material_dark) not found.
C:\Users\username\AndroidStudioProjects\MyDashboardsAppDjango\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:940: error: resource color/abc_hint_foreground_material_light (aka com.example.mydashboardsapp_django:color/abc_hint_foreground_material_light) not found.

我曾尝试重新安装模拟器和android-studio本身

浏览设置文件; https://docs.expo.io/versions/latest/workflow/android-studio-emulator/

我通读了StackOverflow上的一些帖子,但与我的问题并没有真正的联系。

我相信该错误是由于缺少安装引起的

请帮助,我真的不知道该怎么办。

1 个答案:

答案 0 :(得分:1)

@ Intsab Haider 意味着那里有打开的文件夹;

  1. 打开 C:文件夹
  2. 打开用户文件夹
  3. 打开用户名文件夹
  4. 打开 AndroidStudioProjects 文件夹
  5. 打开 MyDashboardsAppDjango 文件夹
  6. 打开 app 文件夹
  7. 打开 build 文件夹 并删除文件夹 build 文件夹
  8. 中的所有内容

然后转到android-studio并点击运行按钮(绿色播放箭头)或移动F10 看看它是否运行