Issue
Hello my partner and I have been working on this problem and doing research for the last two weeks on this problem. We are using the Android version 5.0.1 and it will not generate our resource file(r.java). We think it may have something to do with these errors we are getting upon creating the project. Any help would be much appreciated. The errors follow this paragraph.
[2014-12-23 13:01:39 - jcandroid!] C:\Users\Jacob\workspace\jcandroid!\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name Theme.AppCompat.Light'.
[2014-12-23 13:01:39 - jcandroid!]
[2014-12-23 13:01:39 - jcandroid!] C:\Users\Jacob\workspace\jcandroid!\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-23 13:01:39 - jcandroid!]
[2014-12-23 13:01:39 - jcandroid!] C:\Users\Jacob\workspace\jcandroid!\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2014-12-23 13:01:39 - jcandroid!]
Solution
One thing I notice is you have an exclamation mark ! in your project name. You should remove that because it could cause weird issues with tools.
Also check if your project is including the AppCompat library.
Follow the steps to download and install the AppCompat library as instructed on the Android Developers site.
Make sure you add the library to your project in Eclipse by right-clicking on the project then selecting Properties -> Android. In Library, click Add then select the appcompat_v7 library.
Answered By - monkbroc
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.