2

I have followed the eaxct method found at ./sdk/docs/tools/support-library/setup.html but when import v7-appcompat into workspace , it gives the error in the Android Manifest File

error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/ Theme.AppCompat').

coderVishal
  • 8,369
  • 3
  • 35
  • 56
  • the library is not refernced properly. check this http://developer.android.com/tools/support-library/setup.html#libs-with-res – Raghunandan Apr 12 '14 at 05:51
  • check this if it helps http://stackoverflow.com/questions/21059612/no-resource-found-that-matches-the-given-name-style-theme-appcompat-light – Raghunandan Apr 12 '14 at 05:56

3 Answers3

8

Ok found a way do it. .. I changed the v7-appcompat project's(in the workspace) target sdk version to latest version, then i right clicked the project closed it , and then opened it again , and the error was gone , strange but it worked.....

coderVishal
  • 8,369
  • 3
  • 35
  • 56
0

you need adding support v7 project as library project to your project or using Gradle to handle it .

Amin Bahiraee
  • 538
  • 10
  • 20
  • actually I have not even added another project, I have just imported the v7compat. It was added to work space with the error,any help , thank you – coderVishal Apr 12 '14 at 06:00
  • do you want use v7compat in your project of modify it !? – Amin Bahiraee Apr 12 '14 at 06:11
  • actually i want to use v7 in my project, but its not even being imported properly, when i import the v7compat for the first time it have the theme error, i have used it in another project , the project have an red exclamation mark, its probably because of the error – coderVishal Apr 12 '14 at 06:25
  • see your libs folder on v7comp project do you see jar file named support v7? – Amin Bahiraee Apr 12 '14 at 06:43
0

Even i have come across for the same problem in my project, first update the SDK for available updates,once SDK is updated restart the eclipse, thats it ,working fine for me now