-1

I tried to create a new Android project, but at the beginning (after the project configuration) I've got these errors:

enter image description here

Can anyone help me, please?

CzechJura
  • 3
  • 1
  • 6

1 Answers1

0

It means that some Material Design stuff is incompatible with your minSDK or targetSDK version.

In Eclipse, set your own project to target API 21 (or greater):

  • open Project Properties and in the Android panel, s
  • specify Project Build Target as API21 (or greater).

When Project Build Target of your own project is below 21, errors in the question appear. Clean and re-build your own project when modified its Project Build Target.

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

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

Hope it help

Community
  • 1
  • 1
piotrek1543
  • 19,130
  • 7
  • 81
  • 94