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


Can't process attribute android:fillColor="@color/camera_progress_delete": references to other resources are not supported by build-time PNG generation.
ErrorwhileprocessingC:\Users\zhangjiqun\callshow\callshow1\callshow\videorecord\src\main\res\drawable\ic_accept_active.xml : Can't process attribute android:fillColor="@color/camera_progress_delete": references to other resources are not supported by build-time PNG generation. See developer.android.com/tools/help/… for details.
> A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
> Error while processing C:\Users\zhangjiqun\callshow\callshow1\callshow\videorecord\src\main\res\drawable\ic_delete_active.xml : Can't process attribute android:fillColor="@color/camera_progress_delete": references to other resources are not supported by build-time PNG generation. See developer.android.com/tools/help/… for details.
> A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction
      > Error while processing C:\Users\zhangjiqun\callshow\callshow1\callshow\videorecord\src\main\res\drawable\ic_delete_active.xml : Can't process attribute android:fillColor="@color/camera_progress_delete": references to other resources are not supported by build-time PNG generation. See developer.android.com/tools/help/… for details.

再加入新的module时遇到这个问题,是由于新的moddule是旧的项目,而android studio升级了,gradle升级了一般是4.0以后的版本造成的。

解决办法:

在app的gradle的defaultConfig中加入:vectorDrawables.useSupportLibrary = true

在引入的module的gradle的defaultConfig中加入:vectorDrawables.useSupportLibrary = true

如下所示:

defaultConfig { vectorDrawables.useSupportLibrary = true }
目录
相关文章
|
10天前
|
Android开发
Android JNI与CAN通信遇到的问题总结
Android JNI与CAN通信遇到的问题总结
32 1
|
2月前
|
开发工具 Android开发
Unknown android attribute android:popupPromptView under SherlockSpinner UnknownProjectException
Unknown android attribute android:popupPromptView under SherlockSpinner UnknownProjectException
18 1
|
3月前
|
Android开发
【Bug】Android resource linking failed和error: failed linking references.
【Bug】Android resource linking failed和error: failed linking references.
|
10天前
|
Linux Android开发
Android 内核关闭CAN 串口设备回显功能
Android 内核关闭CAN 串口设备回显功能
9 0
|
Android开发
清单文件合并失败Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4
清单文件合并失败Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4
清单文件合并失败Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4
|
Android开发
Android Studio提示Field can be converted to a local varible
Android Studio提示Field can be converted to a local varible
143 0
|
Shell Android开发
理解adb错误:Can‘t find service: android.service.gatekeeper.IGateKeeperService
理解adb错误:Can‘t find service: android.service.gatekeeper.IGateKeeperService
理解adb错误:Can‘t find service: android.service.gatekeeper.IGateKeeperService
|
10天前
|
消息中间件 网络协议 Java
Android 开发中实现数据传递:广播和Handler
Android 开发中实现数据传递:广播和Handler
14 1
|
11天前
|
Linux 编译器 Android开发
FFmpeg开发笔记(九)Linux交叉编译Android的x265库
在Linux环境下,本文指导如何交叉编译x265的so库以适应Android。首先,需安装cmake和下载android-ndk-r21e。接着,下载x265源码,修改crosscompile.cmake的编译器设置。配置x265源码,使用指定的NDK路径,并在配置界面修改相关选项。随后,修改编译规则,编译并安装x265,调整pc描述文件并更新PKG_CONFIG_PATH。最后,修改FFmpeg配置脚本启用x265支持,编译安装FFmpeg,将生成的so文件导入Android工程,调整gradle配置以确保顺利运行。
36 1
FFmpeg开发笔记(九)Linux交叉编译Android的x265库