我的编译器仅显示此错误。我不知道发生了什么事。
我正在测试一个使用firebase运行的项目。应其要求,我只是进入项目结构将我的minsdk更改为26,但更改后,它会提供这些错误。
由于这是我的第一个Android项目,所以我不知道发生了什么事。
有人可以帮我忙吗?
Android resource linking failed
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1894: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1897: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:282: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:285: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2786: error: resource android:attr/fontVariationSettings not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2787: error: resource android:attr/ttcIndex not found.
error: failed linking references.
答案 0 :(得分:0)
检查XML文件导致“找不到android:attr / dialogCornerRadius” 表示未定义“ dialogCornerRadius”,您可以替换它 用“ 2dp”之类的值或在“ dimens.xml”中将其初始化 链接以创建“ dimen”文件