I am some what new to android, and i got an application code which is a big project. I understand all the code written, but currently i got a problem. Before i explain the problem, i will list libs this application is using.
- ActionBarSherLock
- ImageLoader
Below is the app settings of the android application in AndroidManifest file
android:versionCode="7" android:versionName="2.0" > <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="18" />
I included the two libs in the application from Android category on the project properties. But current i got the following error
home cant be resolved
in all over the project. At places where i get this error, the below same code is placed:
if(item.getItemId()==android.R.id.home){
and the section android.R.id.home is giving error.
Edit : After cleaning the project, i got some errors in the console like below :
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values\abs__styles.xml:101: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:55: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionMode.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values\abs__styles.xml:328: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:93: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:96: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:98: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:100: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:102: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:104: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:106: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:108: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:110: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:113: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:115: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:117: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:119: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__styles.xml:121: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__themes.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\ABS\res\values-v14\abs__themes.xml:14: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\Othaim\res\values-v11\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\Othaim\res\values-v11\styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\Othaim\res\values-v11\styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[2013-09-10 16:04:30 - Othaim] D:\android\eclipse\Othaim\res\values\styles.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/Widget.Holo.ActionBar.TabView'.
ABS is the project for ActionBarSherlock lib.
I also checked at my java files, and android.R is not imported. Also i have read the following posts on stack exchange :
R.id cannot be resolved on android ListActivity
but none of them fixed my issue.
Kindly help me in this issue.
Thank you