您当前的位置: 首页 >  android

ZhangJiQun&MXP

暂无认证

  • 3浏览

    0关注

    1187博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Can t process attribute android:fillColor=@color/camera_progress_delete: references to other resou

ZhangJiQun&MXP 发布时间:2018-04-03 18:05:34 ,浏览量:3

 

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 http://developer.android.com/tools/help/vector-asset-studio.html 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 http://developer.android.com/tools/help/vector-asset-studio.html 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 http://developer.android.com/tools/help/vector-asset-studio.html 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 }
 

 

关注
打赏
1665659684
查看更多评论
立即登录/注册

微信扫码登录

0.0422s