Android Studio中references to other resources are not supported by build-time PNG generation解决方案

问题

Can't process attribute android:strokeColor="@color/ucrop_color_toolbar_widget": 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.

解决方案

参考文档:http://developer.android.com/tools/help/vector-asset-studio.html

在项目build.gradle中,添加如下代码:

android {
  defaultConfig {
    vectorDrawables.useSupportLibrary = true
  }
}

OK,完美解决~

猜你喜欢

转载自blog.csdn.net/u010358168/article/details/81015621