找不到样式属性attr/@ attr/minTextSize [英] Style attribute attr/@attr/minTextSize not found

查看:244
本文介绍了找不到样式属性attr/@ attr/minTextSize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很久以来我一直在尝试找出问题所在,但不幸的是无法

I have trying since long to identify the issue but unfortunately not able to

如果我这样做

android.enableAapt2 = true

android.enableAapt2=true

代码工作正常,但是删除相同的代码(必须强制使用),并抛出错误提示

The code works fine, but removing the same(Which should compulsorily be) there is a error thrown saying

\incremental\mergeDevDebugResources\merged.dir\values\values.xml:5887: error: style attribute 'attr/@attr/minTextSize' not found.

以下是我使用的版本的详细信息

Here are the details of the versions I am using

classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
classpath 'com.google.gms:google-services:4.0.1'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.1"

在Gradle.Properties中

In Gradle.Propeties

distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip

支持库版本

compile 'com.android.support:appcompat-v7:28.0.0'

错误输出路径

\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0-alpha3.aar\33e6fcc6d3eea5b57de6d7aedf3f55c0\res\values\values.xml

推荐答案

问题在于项目中添加了一些等级. 实际上,库内部已经定义了属性minTextSize

The issue is with some of the gradles added in project. Actually the libraries internally have defined the attribute minTextSize

由于最新更新和兼容性,未找到attr.

Due to latest updates and compatibility the attr was not found.

为了确定我已定义了与attr相同的属性

To identify I have defined same attr as

<attr name="minTextSize" format="integer">16</attr>

我的应用模块中attrs.xml中的

. 编译相同的重复值和路径引发的错误,从该路径中我发现需要更新的库.

in attrs.xml in my app module. Compiling the same thrown error of duplicate value and path and from that path I have found the library which needs to be updated.

更新所有库版本的最新版本已解决了该问题.

Updating to the latest of all library version have solved the issue.

这篇关于找不到样式属性attr/@ attr/minTextSize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆