[英]Android resource linking failed. Image is present in all drawable folders but the error says it is not found
I already have the images in my drawable folders. 我的可绘制文件夹中已经有图像。 They were working earlier but now it shows that the resource is not found.
他们早先在工作,但现在表明找不到资源。 This is basically with all images.
这基本上与所有图像有关。
I am using ImageView
and android:src=@drawable/filename
我正在使用
ImageView
和android:src=@drawable/filename
I had a similar issue with the new version of Android Studio (3.3). 我在新版本的Android Studio(3.3)中遇到了类似的问题。 If you just updated the software and suddenly it stops working, open your
build.gradle
file and remove this line: 如果您只是更新了该软件而突然停止运行,请打开
build.gradle
文件并删除以下行:
apply plugin: 'com.android.application'
android {
...
defaultConfig {
...
vectorDrawables.useSupportLibrary = true // This line here
}
...
It fixed the issue for me. 它为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.