简体   繁体   中英

How to add android arsenal library to my project?

I am trying to use android arsenal libraries. i found a library here: https://android-arsenal.com/details/1/1615 , and i downloaded a .zip file. i want to use it in my project.i have followed the instruction to add the library and add this code to the gradle

dependencies {
compile 'com.github.chenupt:SpringIndicator:1.0.2'
}

.but it still didn't work well.

How do i add it to my project with Android Studio ?

Look what you have added to your gradle dependecies, and what is in a tutorial. And you don't need any zip file, gradle will download the dependecies for you.

It should be like this:

dependencies {
    compile 'com.github.chenupt.android:springindicator:1.0.2@aar'
}

According to Java docs compile is deprecated.

compile (Deprecated)

Compile time dependencies. Superseded by implementation.

It should be like this:

dependencies {
    implementation 'com.github.chenupt.android:springindicator:1.0.2@aar'
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM