How to import an external library in Android studio?

How do I Import a library from github in Android Studio?

  • [I'm a newbie] I want to include a git library in android studio -> https://github.com/florent37/MaterialViewPager I tried this. New-> import module -> downloaded file address But it's giving some errors.

  • Answer:

    You dont have to import a module . Just put the path in your build.gradle dependencies and use it as described. e.g: dependencies { compile ('com.github.florent37:materialviewpager:1.0.3.2@aar'){ transitive = true } }

Prathmesh Deshmukh at Stack Overflow Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.