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 }
相关文章
|
Android开发
Android JNI与CAN通信遇到的问题总结
Android JNI与CAN通信遇到的问题总结
614 1
|
开发工具 Android开发
Unknown android attribute android:popupPromptView under SherlockSpinner UnknownProjectException
Unknown android attribute android:popupPromptView under SherlockSpinner UnknownProjectException
【Bug】Android resource linking failed和error: failed linking references.
【Bug】Android resource linking failed和error: failed linking references.
|
Linux Android开发
Android 内核关闭CAN 串口设备回显功能
Android 内核关闭CAN 串口设备回显功能
136 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
|
13天前
|
开发工具 Android开发
X Android SDK file not found: adb.安卓开发常见问题-Android SDK 缺少 `adb`(Android Debug Bridge)-优雅草卓伊凡
X Android SDK file not found: adb.安卓开发常见问题-Android SDK 缺少 `adb`(Android Debug Bridge)-优雅草卓伊凡
182 11
X Android SDK file not found: adb.安卓开发常见问题-Android SDK 缺少 `adb`(Android Debug Bridge)-优雅草卓伊凡
|
23天前
|
Java 开发工具 Maven
【01】完整的安卓二次商业实战-详细的初级步骤同步项目和gradle配置以及开发思路-优雅草伊凡
【01】完整的安卓二次商业实战-详细的初级步骤同步项目和gradle配置以及开发思路-优雅草伊凡
87 6
|
3月前
|
安全 数据库 Android开发
在Android开发中实现两个Intent跳转及数据交换的方法
总结上述内容,在Android开发中,Intent不仅是活动跳转的桥梁,也是两个活动之间进行数据交换的媒介。运用Intent传递数据时需注意数据类型、传输大小限制以及安全性问题的处理,以确保应用的健壯性和安全性。
171 11
|
3月前
|
移动开发 Java 编译器
Kotlin与Jetpack Compose:Android开发生态的演进与架构思考
本文从资深Android工程师视角深入分析Kotlin与Jetpack Compose在Android系统中的技术定位。Kotlin通过空安全、协程等特性解决了Java在移动开发中的痛点,成为Android官方首选语言。Jetpack Compose则引入声明式UI范式,通过重组机制实现高效UI更新。两者结合不仅提升开发效率,更为跨平台战略和现代架构模式提供技术基础,代表了Android开发生态的根本性演进。
112 0

热门文章

最新文章