[Android] Adding the ActionBarCompat to your project

There are plenty of tutorials like this one that use the ActionBarCompat.

You may have noticed that they all import the ActionBarCompat like this:

import android.support.v7.app.ActionBarActivity;

And here comes the question:

Where is the android-support-v7.jar file?

I’ve seen android-support-v4.jar, and android-support-v13.jar, but not v7.

The solution is:


Copy android-support-v7-appcompat.jar to your project’s libs/ folder, and now you are able to import android.support.v7.app.ActionBarActivity and start working with it.

Sounds stupid, but it took me half an hour to find it.

Hope it saves time for you!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s