Search code examples
androidandroid-actionbarandroid-support-library

Unable to add Android Support Library version 7


I want to use ActionBar in my app and the min sdk is set to 7. I have to import android.support.v7.*; . but when I import to my app, after putting support library, I see v4 but not v7. I have downloaded the latest version of Android support library by Android SDK manager.

I have researched this question and I found some question like mine but no useful answer. This question wasn't useful or I just didn't understand the answer.


Solution

  • The procedure is different from including the android.support.v4 jar. The android.support.v7 libraries are provided as source code that need to be imported, built and then included in your project. The link here has all the information you need : Android Support Libraries Setup

    Look under, Adding Support Libraries -> Adding libraries with resources. There is information for both Eclipse/ADT and Android Studio. I have successfully included the support action bar in my development.