无法在Android studio中通过ozodrukh添加CircularVeal库

无法在Android studio中通过ozodrukh添加CircularVeal库,android,android-studio,android-gradle-plugin,Android,Android Studio,Android Gradle Plugin,我正在使用AndroidStudio 1.1.0并尝试添加库。我已经按照其中提到的说明进行了操作 我的build.gradle(模块:app)是: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.1" defaultConfig { applicationId "com.

我正在使用AndroidStudio 1.1.0并尝试添加库。我已经按照其中提到的说明进行了操作

我的
build.gradle(模块:app)
是:

 apply plugin: 'com.android.application'

    android {
        compileSdkVersion 21
        buildToolsVersion "21.1.1"

        defaultConfig {
            applicationId "com.geronimo.myapplication"
            minSdkVersion 18
            targetSdkVersion 21
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:21.0.3'
        compile 'com.github.ozodrukh:CircularReveal:(latest-release)@aar'
    }

I have added the repository in `build.gradle(Project: MyApplication3)`

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven {
            url "https://jitpack.io"
        }

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}
我得到的错误是

 D:\Workspaces\AndroidStudio\Studio1.0\MyApplication3\app\build.gradle
Error:(24, 13) Failed to resolve: com.github.ozodrukh:CircularReveal:(latest-release)
    <a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
错误始终保持为
无法解决…


是否有其他方法导入远程aar文件并添加此依赖项?

手动将
@aar
文件复制到
libs
目录。然后去

文件>项目结构>依赖关系

在右侧的红十字会上选择
库依赖项
。这将提示您一个对话框,您可以在其中搜索依赖项并添加它们


从github下载并将其作为
模块依赖项
文件>项目结构>依赖项
导入。您只需输入版本号,不带括号和“v”字符
com.github.ozodrukh:CircularVeal:1.0。4@aar

我以前也有同样的问题。检查后,我发现问题出在MiniDK版本上,该版本低于15。一旦我把它改成15,它就成功了

MinSDK版本14(更改为15或以上) targetSdkVersion 26

然后将其粘贴到库依赖项

implementation('com.github.ozodrukh:CircularReveal:2.0。1@aar') {
及物=真;
}

还可以添加远程maven url

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

这不是maven cetral库。它的repo在中。您是否尝试下载
@aar
文件并手动将其复制到您的项目中?然后从
文件>项目结构>依赖项
下载并将其作为
模块依赖项导入实际上手动添加aar解决了它。aar名称中存在拼写错误我忽略了它的
circular
,而不是
circular
。只要在你的答案中添加aar,我就会接受它。@Droidekas实际上我在答案中也添加了这个。然而,我编辑它与进一步的信息可能会帮助其他人与类似的问题。很高兴您解决了问题OK,您还必须包括存储库{maven{url”“}
repositories {
    maven {
        url "https://jitpack.io"
    }
}