0
点赞
收藏
分享

微信扫一扫

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 }

 

举报
0 条评论