API Level disagrees

0

I'm taking my first steps in Android development (today is my second day of study). See below my configuration files and the error I'm encountering:

Initially, my AndroidManifest.xml was like this:

<uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="19" />

When I tried to insert the following lines into my style.xml :

<style name="MyActionBar"
           parent="@android:style/Widget.Holo.ActionBar.Solid">
        <item name="android:background">@drawable/actionbar_background</item>
    </style>

I received the following error:

  

@android: style / Widget.Holo.ActionBar.Solid requires API level 14   (current min is 11)

Then I changed the AndroidManifest.xml to:

<uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="19" />

But the error persists. Do I need to make any further changes to let him know that I've changed minSdkVersion to 14?

PS: I'm trying to follow the example found here here

    
asked by anonymous 18.06.2014 / 15:36

1 answer

1

Just give Build > Rebuild Project, in the case of Intelli J or Android Studio or Project > Build Project, in the case of Eclipse.

Search how to use the appcompat-v7 library ok.

With it you can provide graphical features of higher versions of Andorid, such as 4.0, 4.1.2, etc. to run in older versions (from API 7 or 8, if I'm not mistaken)

    
26.06.2014 / 05:25