android - Adding ActionSherlock creates Eclipse Error R cannot be resolved to a Variable -
android - Adding ActionSherlock creates Eclipse Error R cannot be resolved to a Variable -
am trying create action tab bar illustration actionsherlock library. 1 time library added project, getting error in mainactivity.
error r cannot resolved variable
sherlocklirary androidmanifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.actionbarsherlock" android:versioncode="440" android:versionname="4.4.0" > <uses-sdk android:minsdkversion="7" android:targetsdkversion="17" /> <application /> </manifest>
application's androidmanifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androidbegin.actionbarsherlocktutorial" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="19" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.androidbegin.actionbarsherlocktutorial.mainactivity" android:label="@string/app_name" android:uioptions="splitactionbarwhennarrow"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest>
added error screens
import actionbarsherlock lib project android project.
then select project goto properties select android. scroll downwards below sdk version. add together library project.
clean projects.
-- answered nexus 5
android android-layout android-activity android-actionbar actionbarsherlock
Comments
Post a Comment