I'm using Android Studio, and as you know, importing libraries used in current IDE
like Eclipse
is not easy with Android Studio. I'm trying to import the slidingmenu
lib into my project but I don't know how to do it well. I've tried as they said in this link How to import slidingmenu on Intellij Idea? But I failed again. So I hope someone can answer me and show me how it works.
Just make sure your module is saved in the same folder first the just type From followed by the name of your module and import your function then you can just print or do what ever you want with the module. Also you can just import the whole module by importing it.
Import as a Project: Start Android Studio and close any open Android Studio projects. From the Android Studio menu click File > New > Import Project. Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc) Select the Eclipse ADT project folder with the AndroidManifest.
Better yet: Use this https://github.com/jzaccone/SlidingMenu-aar
Just add the following to your build.gradle
repositories { maven { url "http://jzaccone.github.io/SlidingMenu-aar" } ... } dependencies { compile 'com.jeremyfeinstein.slidingmenu:library:1.3@aar' ... }
It's slightly out of date - but it's better than AndroidStudio not recognizing the class files (which happened to me), and the fix described here didn't work either: https://stackoverflow.com/a/21170839/1639040
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With