Android 2.0: support for the Actionbar library (support for the appcompat v7 application library without resources): the resource was not found. @ Style / Theme.AppCompat.Light.DarkActionBar

I followed the link http://developer.android.com/guide/topics/ui/actionbar.html for implementing ActionBar in Android 2.0

I performed the following procedures.

i) Create a new project

ii) Create a libs folder in my project

iii) include the files android-support-v13.jar and android-support-v7-appcompat.jar and add them to the build path

My file Myififiest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.tgactionbar"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="16" />

    <application

        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        >
        <activity
            android:name="com.example.tgactionbar.MainActivity"
            android:label="@string/app_name" 
            android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

i got this error

error: error: resource not found that matches the specified name (in the 'topic' with the value @ Style / Theme.AppCompat.Light.DarkActionBar ').

+3
2

eclipse, : enter image description here

, . , , .

+5

v7 appcompat library , : http://developer.android.com/tools/support-library/setup.html#download

, android-support-v7-appcompat.jar android-support-v4.jar , .

<sdk>/extras/android/support/v7/appcompat/.

:

  • Project Explorer "".
  • "" "".
  • "". , appcompat android-support-v7-appcompat.
  • "".
+1

All Articles