R.java Android Studio中GradientColor_fontVariationSettings的重复实例 [英] Duplicate instance of GradientColor_fontVariationSettings in R.java android studio
问题描述
我已经在android studio中进行了相当不错的编码.最近,出现了一个项目无法编译的问题,我将错误归因于重复的变量
I've been coding around in android studio for a decent bit now. Recently an issue popped up where the project would be unable to compile and I traced down the error to a duplicate variable
public static final int GradientColor_fontVariationSettings = 13;
public static final int GradientColor_fontVariationSettings = 14;
在文件R.java中的
.我删除了它,但是由于它是自动生成的,因此只是将其再次添加而无法再次编译.我得到的错误是变量GradientColor_fontVariationSettings已在可样式化的类中定义.
in the file R.java. I removed this but since it is auto-generated, it simply adds it again and fails to compile once more. The error I am getting is variable GradientColor_fontVariationSettings is already defined in class styleable.
我找到了文件并删除了引用,但是问题仍然存在.任何人都有想法
I found the file and deleted the reference, but the issue is still occuring. Any ideas anybody
推荐答案
GradientColor_fontVariationSettings表示
GradientColor_fontVariationSettings means fontVariationSettings attribute of GradientColor class. So, check res/attr, shapes in res/drawable folder which uses gradient and other gradient related resources. If nothing seems suspicious, check imported libraries.
如果您想在整个项目中找到"GradientColor"或"fontVariationSettings",Android Studio会提供一个菜单"Find in path".
If you want to find "GradientColor" or "fontVariationSettings" occurence in a / entire project, Android Studio has a menu "Find in path".
参考
搜索在Android Studio中整个项目中所有出现的字符串
已更新:
编辑>查找>查找使用情况可能有助于搜索使用情况.
Edit > Find > Find Usage may help to search usages.
这篇关于R.java Android Studio中GradientColor_fontVariationSettings的重复实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!