Reputation: 3440
I know how to clone a GitHub project as a new Android Studio project, but I have not yet found a way of directly importing a GitHub library project as a library into my existing Android Studio project without either
1) using external version control software (such as standalone git) or
2) downloading the library as a zip and importing it manually (thus losing the ability to pull the latest updates without repeating this step)
Is there a way to import GitHub library projects (as for example the MPAndroidChart engine) into my Android Studio project with Android Studio managing the version control to stay up to date?
Usually I just go to gradleplease.appspot.com and look for a gradle dependency, but not all libraries are available.
Upvotes: 2
Views: 2041
Reputation: 27717
You can get a GitHub library project into your build using JitPack.
For example, for MPAndroidChart it would be: https://jitpack.io/#PhilJay/MPAndroidChart
And, you can also find it in the usage section of the library on GitHub.
Upvotes: 2
Reputation: 2555
If you are using gradle you can use the maven repository, that has the MPandroidchart library. http://search.maven.org/#search|ga|1|mpandroidchart
Upvotes: 0