简体   繁体   English

无法将外部库添加到android studio项目

[英]Cannot add external library to android studio project

I am trying to add https://github.com/jkwiecien/EasyImage to my Android studio project. 我正在尝试将https://github.com/jkwiecien/EasyImage添加到我的Android Studio项目中。 When i add the line: 当我添加行:

compile 'com.github.jkwiecien:EasyImage:1.2.1' 

to my app's build.gradle file, it gives me: 到我的应用程序的build.gradle文件,它为我提供了:

Error(33, 13) Failed to resolve. 错误(33,13)无法解决。

Add this line to your root build.gradle 将此行添加到您的root build.gradle

repositories {
   maven { url "https://jitpack.io" }
}

Please try Latest one 请尝试最新的

dependencies {
    compile 'com.github.jkwiecien:EasyImage:1.2.3'
}  

I found this answer here: https://android-arsenal.com/details/1/2725#package 我在这里找到了这个答案: https : //android-arsenal.com/details/1/2725#package

https://jitpack.io/#jkwiecien/EasyImage/1.3.1 https://jitpack.io/#jkwiecien/EasyImage/1.3.1

If you're using gradle, you need two steps: 1. adding jitpack repository to the root build file 2. add your dependency to the EasyImage library to the app build file. 如果使用gradle,则需要两个步骤:1.将jitpack存储库添加到根构建文件中2.将依赖项添加到EasyImage库到应用程序构建文件中。

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

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