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
> 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 }