Duplicate instance of GradientColor_fontVariationSettings in R.java android studio

前端 未结 2 2000
南笙
南笙 2021-01-23 09:26

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 duplic

2条回答
  •  鱼传尺愫
    2021-01-23 09:39

    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.

    If you want to find "GradientColor" or "fontVariationSettings" occurence in a / entire project, Android Studio has a menu "Find in path".

    Refs.

    Drawable resources - Shape drawable

    GradientDrawable

    Search all the occurrences of a string in the entire project in Android Studio

    Updated:

    Edit > Find > Find Usage may help to search usages.

提交回复
热议问题