我一直无法解析对';的依赖关系:app@debugAndroidTest/compileClasspath';,当我使用gradle的图书馆时

我一直无法解析对';的依赖关系:app@debugAndroidTest/compileClasspath';,当我使用gradle的图书馆时,android,Android,我最近使用File->new Module->Android库创建了一个库,它在我的应用程序上工作,因为该模块在本地可用于项目(同一根目录),但当我将其推送到GitHub并使用库在JitPack上发布时 实现'com.github.okraHQ:okra android sdk:v1.0' 我试着在同一个项目和不同的项目上实现它 我弄错了 错误:无法解析“”的依赖项:app@debugAndroidTest/compileClasspath':无法解析com.github.okraHQ:okra

我最近使用File->new Module->Android库创建了一个库,它在我的应用程序上工作,因为该模块在本地可用于项目(同一根目录),但当我将其推送到GitHub并使用库在JitPack上发布时

实现'com.github.okraHQ:okra android sdk:v1.0'

我试着在同一个项目和不同的项目上实现它

我弄错了

错误:无法解析“”的依赖项:app@debugAndroidTest/compileClasspath':无法解析com.github.okraHQ:okra android sdk:v1.0。 显示细节 受影响模块:应用程序

错误:无法解析“”的依赖项:app@debugAndroidTest/compileClasspath':无法解析com.github.okraHQ:okra android sdk:v1.0。 显示细节 受影响模块:应用程序

错误:无法解析“”的依赖项:app@debugUnitTest/compileClasspath':无法解析com.github.okraHQ:okra android sdk:v1.0。 显示细节 受影响模块:应用程序

问题的原因是什么?我一直在关注另一个问题,但没有找到解决办法

以下是我的库的构建梯度:

apply plugin: 'com.android.library'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.0"


    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
这是使用该模块的应用程序的构建梯度

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.0"
    defaultConfig {
        applicationId "com.okra.widget.example"
        minSdkVersion 14
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
    implementation 'com.github.okraHQ:okra-android-sdk:0.1-alpha'
}
这是一个项目

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'

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

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://maven.google.com";
        }
        maven { url 'https://jitpack.io' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

发布您的构建。gradlefile@Md.Asaduzzaman我已经添加了它们。请问是图书馆的Github链接吗?这真的出版了吗?