How to insert a library into a project in Android Studio?

3

I'm new to Android app development, and I think it's cool to push my apps with a kind of Intro as soon as they run.

I was researching on what I came to this library: link

It turns out, however, that I can not add it to the project. I've already tried declaring this library as a dependency in my build.grad, as the developer explains, but I could not get the library to be downloaded in my project in Android Studio.

Can anyone help me by taking a step-by-step or do you have a more appropriate suggestion to accomplish what I'm asking?

Thank you =)

    
asked by anonymous 06.07.2015 / 23:01

1 answer

1

First, run your Android Studio with administrador permissions.

After this, navigate to build.gradle in the root of your project and add the line:

buildscript {
    repositories {
        mavenCentral()
    }
}

Soon after changing this file, a similar message will appear at the top of your Android Studio:

ClickSyncNow.

Thengotobuild.gradlewithinyourprojectdirectory(usuallycalledapp)andaddtheline:

dependencies{compile'com.github.paolorotolo:appintro:2.0.0'}

Afterthechange,theabovemessagewillappearagainandagain,click%with%.

Inthisway,youwillbeabletousethelibrarywithinyourproject.

AnotherwaytoSyncNowofyourSyncfilesisthroughtheshortcut:

    
07.07.2015 / 00:06