Android资源链接失败。图像存在于所有可绘制文件夹中,但错误表明未找到该图像

Android资源链接失败。图像存在于所有可绘制文件夹中,但错误表明未找到该图像,android,android-studio,android-layout,Android,Android Studio,Android Layout,我的绘图文件夹中已经有了这些图像。他们以前工作过,但现在显示找不到资源。这基本上是所有的图像 我使用的是ImageView和android:src=@drawable/filename我在新版本的android Studio(3.3)上遇到了类似的问题。如果您刚刚更新了软件,但软件突然停止工作,请打开build.gradle文件并删除此行: apply plugin: 'com.android.application' android { ... defaultConfig {

我的绘图文件夹中已经有了这些图像。他们以前工作过,但现在显示找不到资源。这基本上是所有的图像


我使用的是
ImageView
android:src=@drawable/filename
我在新版本的android Studio(3.3)上遇到了类似的问题。如果您刚刚更新了软件,但软件突然停止工作,请打开
build.gradle
文件并删除此行:

apply plugin: 'com.android.application'

android {
    ...
    defaultConfig {
        ...

        vectorDrawables.useSupportLibrary = true // This line here
    }
    ...

它为我解决了这个问题。

我对新版本的Android Studio(3.3)也有类似的问题。如果您刚刚更新了软件,但软件突然停止工作,请打开
build.gradle
文件并删除此行:

apply plugin: 'com.android.application'

android {
    ...
    defaultConfig {
        ...

        vectorDrawables.useSupportLibrary = true // This line here
    }
    ...

它为我解决了问题。

尝试清理并重建项目。找到解决方案了吗?因为我面临同样的问题。尝试清理和重建项目。找到解决方案了吗?因为我面临着同样的问题。