Error at lib support appcompat_v7

前端 未结 4 1836
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-10 06:26

I am having trouble to at library appcompat_v7

It have error on path

res/values-v21/styles_base.xml

and at line 75 show erro

4条回答
  •  有刺的猬
    2021-02-10 07:09

    Had same problem after upgrading my Eclipse and import "Android Support Library" in workspace.

    I think it's a bad solution to "Downgrading to appcompat" so I tried to find another way and found it. My problem was that my "Project Build Target" of AppCompat was set to API lvl 19. So this is a problem:

    -Eclipse wasn't load the data for API lvl 21 for AppCompat.

    -Appcompat have Target API lvl 19, but trying to set style for API lvl 21.

    Maybe You have same problem so checkout what was help me:

    1.

    Right click on Appcompat project => Properties => Android => Checkout where was your mark, and if it's not set on Android 5.0 - fix it and click ok.

    2.

    Project => Clean => Set "Clean all projects" => Ok

    P.S. Sorry if I have mistakes - English isn't my native language.

提交回复
热议问题