Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project in my drive that works fine. but after importing it into my workspace it shows the following error in styles.xml "no resources found that matches the given name Theme.AppCompact.Light" i have imported android-supported-v7-appcompact.jar in this project. if i remove this jar file i get errors in all the classes that has been created.

Need help to figure out the solution.
Posted
Comments
Mohibur Rashid 25-May-15 4:32am    
try this link. They have discussed almost same issue. It might help you
Rahul Ramakrishnan 25-May-15 23:53pm    
i refered to the link but did not solve my problem
Dadecki 25-May-15 5:17am    
Hello,

Please show your manifest file and code for one selected Activity.

1 solution

Hi,

I believe you're trying to import the AppCompat Library Project.
One fact about this project: It has extra resources other than the single .jar file in its libs folder.

So what you do is this:

1. Open Eclipse and on the Projects Pane, right click and you'll see the Import. . . option.
2. Import the AppCompat Library Project.
3. Right click the AppCompat project and go to Properties.
4. Click on the Android Section and make sure the AppCompat Library Project is checked as "Is Library".
5. Hit Apply and OK - as obvious.

-------

6. Right Click on the Project you're currently working on and go to Properties.
7. Click on the Android Section.
8. At the bottom-right corner, you'll see a section labelled: Library.
9. Click on the Add button, then in the Dialog Window that appears, select your AppCompat Library Project and click on OK
10. Click on Apply and OK.

-----

11. Enjoy.


-----------------

If the above doesn't your problem, then make sure your Android SDK - Android Support Library is fully updated.





Quote:

Open for correction, anytime.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900