I am used to importing library as .jar file but I don't know how to use the projects from github like this: https://github.com/jfeinstein10/SlidingMenu/
I want to use it in my existing project. I tried including the project file in the dependencies but it's giving me some errors
On the top-right side of the classic project, click Menu. Click , then click Copy. Under "Owner", use the drop-down menu and click the repository or organization where you want to copy the project board. Optionally, under "Project board name", type the name of the copied classic project.
Navigate to the repository you just cloned. Pull in the repository's Git Large File Storage objects. Mirror-push to the new repository. Push the repository's Git Large File Storage objects to your mirror.
I already explained in this post how to use a project library in android studio. But I know especially at the beginning it's not that easy until you understand the structur of AS-Projects. So here an explanation for your issue:
I'm adding project libraries to my projects by configuring the gradle files of my project like this:
now add this library in your settings.gradle
with the following command:
include ':libs:SlidingMenuLibrary'
go to your build.gradle
file of your AppProject and add the following line to your 'dependencies':
compile project(':libs:SlidingMenuLibrary')
at least you have to sync your gradle files: Tools -> Android -> Sync Project with Gradle Files
Please try this. If you get errors please post the log file.
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