【Bug】Android resource linking failed和error: failed linking references.

简介: 【Bug】Android resource linking failed和error: failed linking references.

Android resource linking failed

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1213: error: resource color/colorPrimary (aka com.example.test3:color/colorPrimary) not found.

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1214: error: resource color/colorPrimaryDark (aka com.example.test3:color/colorPrimaryDark) not found.

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1215: error: resource color/colorAccent (aka com.example.test3:color/colorAccent) not found.

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1213: error: resource color/colorPrimary (aka com.example.test3:color/colorPrimary) not found.

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1214: error: resource color/colorPrimaryDark (aka com.example.test3:color/colorPrimaryDark) not found.

com.example.test3.app-mergeDebugResources-17:/values/values.xml:1215: error: resource color/colorAccent (aka com.example.test3:color/colorAccent) not found.

error: failed linking references.

我想说,如果在网上其他地方找了很长时间找到的方法都没有解决你的问题,那就去检查一下你的代码,代码写的有问题也可能会出现这样的bug

例如像这种:

这里的错误并不会有红色下划曲线的那种错误提示,但是飘红可能就代表有问题

相关文章
|
2月前
|
Android开发 开发者
Error:Could not find com.android.support:appcompat-v7:27.0.2.
Error:Could not find com.android.support:appcompat-v7:27.0.2.
18 0
|
1月前
|
开发工具 Android开发 git
解决Android AAPT: error: resource android:attr/lStar not found. 问题
解决Android AAPT: error: resource android:attr/lStar not found. 问题
61 0
|
1月前
|
Android开发
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
32 3
|
1月前
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
41 2
|
4天前
|
开发工具 Android开发 Windows
Android应用] 问题2:ERROR: unknown virtual device name:
Android应用] 问题2:ERROR: unknown virtual device name:
|
1月前
|
Android开发 开发者
安卓投屏神器 Scrcpy安 报错ERROR: Could not find any ADB device
使用Scrcpy安卓投屏工具时遇到报错,问题根源是未开启开发者模式。解决步骤:进入设置,点击【关于手机】→连续点击版本号激活开发者模式,然后在【系统设置】→【开发者选项】中开启USB调试。参照此方法后可正常执行。Scrcpy软件下载链接和GitHub页面也已提供。
42 1
|
1月前
|
XML Android开发 数据格式
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
23 0
|
2月前
|
Android开发
Can t process attribute android:fillColor=@color/camera_progress_delete: references to other resou
Can t process attribute android:fillColor=@color/camera_progress_delete: references to other resou
11 1
|
2月前
|
API Android开发
List.size() 问题 Android studio: Verbose,Debug,Info,Warn,Error
List.size() 问题 Android studio: Verbose,Debug,Info,Warn,Error
16 0
|
2月前
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
24 5