After you add appcompat_v7 to your dependencies, be sure that the libs
folder from your project are empty. By default, an android-support-v4.jar is created when you define your project, so this will cause conflict when you declare appcompat_v7 library as your dependency.
So, the first thing you need to do is check the folder .../My_Project/libs
and fearlessly delete the file android-support-v4.jar
.
Then, add the appcompat_v7 library as a dependency of your project:
To do this, if you are using Eclipse:
- Right click in your project folder, located in the Navigator.
- Click in properties, in the final of the list.
- In the Properties window, select the Android option (left menu).
- In the box Library, add your new reference.
If you are using Android Studio, you can follow the steps mentioned in the @Joey Garcia's comment.
Support Library Setup -
https://developer.android.com/tools/support-library/setup.html
Let me know if it helped you. Good Luck!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…