简体   繁体   English

如何将 android 兵工厂库添加到我的项目中?

[英]How to add android arsenal library to my project?

I am trying to use android arsenal libraries.我正在尝试使用 android 兵工厂库。 i found a library here: https://android-arsenal.com/details/1/1615 , and i downloaded a .zip file.我在这里找到了一个库: https ://android-arsenal.com/details/1/1615,我下载了一个 .zip 文件。 i want to use it in my project.i have followed the instruction to add the library and add this code to the gradle我想在我的项目中使用它。我已按照说明添加库并将此代码添加到 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 ?如何使用 Android Studio 将其添加到我的项目中?

Look what you have added to your gradle dependecies, and what is in a tutorial.查看您添加到 gradle 依赖项中的内容,以及教程中的内容。 And you don't need any zip file, gradle will download the dependecies for you.而且您不需要任何 zip 文件,gradle 会为您下载依赖项。

It should be like this:它应该是这样的:

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

According to Java docs compile is deprecated.根据Java docs compile已被弃用。

compile (Deprecated)编译(已弃用)

Compile time dependencies.编译时依赖。 Superseded by implementation.被实施取代。

It should be like this:它应该是这样的:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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