How can I import this support library into Android Studio?
I am new to Android development and also new to Android Studio, now I have problems with the support library which is coded by Eclipse. What's the correct way to import it?
I am using latest android studio and gradle version is 2.2.1
here is the url of SlidingMenu support library it seems like I need to import another ActionBarSherlock support library
source to share
First, you need to include the ActionBarSherlock in your project, you can do this by importing the aar file you find on this site:
http://gradleplease.appspot.com/
Then search for actionbarsherlock and you will find this piece of code:
dependencies {
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
Place this code in your build.gradle
file (inside your application folder). If those dependencies exist there, just include the line compile ...
.
The next step is to add SlidingMenu to your project, check out the dependency for the project in this repository: https://github.com/jzaccone/SlidingMenu-aar
Then add in the build.gradle
same way as above.
You can also clone SlidingMenu into your project and import manually, it's up to you.
Remember to change all of your Activities and Fragments to extend the SherlockActivity / Sherlock Fragment.
source to share
This library is abandoned anyway, but if you want to use it in AS with Gradle here, its version of the repository with instructions to make it easier to import.
source to share