Hello World Android App, Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name

前端 未结 8 570
耶瑟儿~
耶瑟儿~ 2020-12-15 05:36

I am a totally newbie who just got into Android development. I am going through the \"Building your first app\" tutorial on the official Android developer webpa

8条回答
  •  -上瘾入骨i
    2020-12-15 06:11

    I found the source of the problem, when we create a new project, it contains the reference of the appcompat_v7 library:

    enter image description here

    the appcompat_v7 library already contains the support library "android-support-v4.jar"

    enter image description here

    the problem is that the new project created contains into the /libs folder, the library "android-support-v4.jar" too!, just delete this .jar from your new project ( that is already contained into the appcompat_v7 library)

    don´t forget to clean and build your project

    This problem happens using API 19 use API 21 or later

提交回复
热议问题