Fixing Error in styles.xml to generate R.java : No resource found name 'Theme.AppCompat.Light'
You are trying to use Theme.AppCompat.Light
theme which is a library project. You have to reference this library project to your project.
Now, at first, check that you have installed this library project as follows...
Go Window-->Android SDK Manager then a window named Android SDK Manager will appear as below.
If the Android Support Library
is not installed then install it. You can see more information about Android Support Library
setup from the below Android Developer site.
Support Library Setup
After Android Support Library
setup completion, reference the library to your project from this path...
android-sdk/extras/android/support/v7/appcompat
To reference, follow these steps:
- File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
- Project-> properties->Android. In the section library "Add" and choose "appCompat"
Now, clean and build your project and run it. I think after all of these, your problem will be solved.
I finally figured out the problem. I had to delete this line of code from my main.xml
:
android:showAsAction="never"
Under my values-v11
and values-14
folders I changed the name of the app to...
style name="AppBaseTheme" parent="android:Theme.Light"
...and it is currently working.