Can't process attribute android:fillColor="@color/text_gray": references to other resources are not
来源:互联网 发布:雨露计划app软件 编辑:程序博客网 时间:2024/06/06 00:23
升级为android studio3.0,gradle升级为4.1,报错:
A failure occurred while executing com.android.build.gradle.tasks.MergeResources$FileGenerationWorkAction > Error while processing D:\Android\WeishuProjects\Zszy\app\src\main\res\drawable\ic_right_gray_24dp.xml : Can't process attribute android:fillColor="@color/text_gray": references to other resources are not supported by build-time PNG generation.
解决方法:
使用Gradle Plugin 2.0以上:android { defaultConfig { vectorDrawables.useSupportLibrary = true }}使用Gradle Plugin 2.0以下,Gradle Plugin 1.5以上:android { defaultConfig { // Stops the Gradle plugin’s automatic rasterization of vectors generatedDensities = [] } // Flag to tell aapt to keep the attribute ids around aaptOptions { additionalParameters "--no-version-vectors" }}
你需要在项目的build.gradle脚本中,增加对Vector兼容性的支持
阅读全文
0 0
- Can't process attribute android:fillColor="@color/text_gray": references to other resources are not
- Archiva can not download file from other resources
- android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
- Android studio share project on git Can't finish GitHub sharing process Please tell me who you are.
- Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
- UnsupportedOperationException: Can't convert to color (?attr/colorPrimaryn )
- Ubuntu下jmap,jinfo Can't attach to the process
- android 上传本地项目到github --Can't finish GitHub sharing process Failed to connect to github.com port 443
- Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
- Android Can't convert to dimension: type=0x1
- php_lang_ref:Language Reference >> References Explained >> What References Are Not
- Android Studio中Can't resolve symbol. Validates resource references inside Android XML files
- Android eclipse unable to launch:The selection can not be launched,and there are no recent launches
- VS2012 can't find localized resources错误
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedVa
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path)
- Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or pat
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedV
- 第九周周四总结
- 【Boost】boost::noncopyable介绍
- Throwing Balls into the Baskets LightOJ
- 计算机网络(四) --- 数据链路层
- 关于iOS11、iPhone X、Xcode9 适配详解
- Can't process attribute android:fillColor="@color/text_gray": references to other resources are not
- c++实现顺序表
- 10/21/22作业
- HAOI 2010 软件安装(Tarjan+树形dp)
- Web Service (014---webservice使用Jquery、Ajax请求WebService所遇到的跨域问题)
- java CommomUtils工具类
- my stl study-road<template.1>
- Gym 100112AAaah!
- 当装了多个tomcat后,如何修改tomcat端口