如何解决Gradle无法解决android工作管理器的错误?

时间:2018-05-30 06:26:43

标签: android android-gradle android-architecture-components

当我尝试将Work Manager库添加到项目gradle文件时,我收到此错误:

Failed to resolve:  android.arch.work:work-runtime:1.0.0-aplha02

我也使用结构,它的依赖项包含在项目级build.gradle中。我不认为maven repositry line弄乱了这个项目。

  

我还想问一下,使用alpha级库是否安全   生产级应用程序?

build.gradle(模块:app):

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    signingConfigs {
        config {
            keyAlias 'androiddebugkey'
            keyPassword 'androooid'
            storePassword 'androooid'
        }
        release {
            keyAlias 'pixieee'
            keyPassword 'Hello1234'

        }
    }
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId "com.pixie.pixieentertainmentsystem"
        minSdkVersion 22
        targetSdkVersion 27
        versionCode 11
        versionName "1.031"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
        debug {
            //signingConfig signingConfigs.config
        }
    }
    productFlavors {
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}
dependencies {
    implementation 'com.google.firebase:firebase-storage:11.6.2'
    implementation 'com.google.firebase:firebase-core:11.6.2'
    implementation 'com.google.firebase:firebase-database:11.6.2'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:support-v4:27.1.1'
    testImplementation 'junit:junit:4.12'
    implementation 'com.google.firebase:firebase-auth:11.6.2'
    implementation 'com.google.android.gms:play-services-auth:11.6.2'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    //apply plugin: 'com.google.gms.google-services'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.google.android.gms:play-services-location:11.6.2'
    implementation 'com.google.android.gms:play-services-analytics:11.6.2'
    implementation 'com.google.android.exoplayer:exoplayer:2.6.1'
    implementation 'uk.co.chrisjenx:calligraphy:2.2.0'
    implementation 'com.danikula:videocache:2.7.0'
    implementation 'jp.wasabeef:blurry:2.1.1'

    implementation 'org.androidannotations:androidannotations-api:3.3.2'
    //apt 'org.androidannotations:androidannotations:3.3.2'
    implementation 'com.danikula:videocache:2.7.0'
    implementation 'com.github.bumptech.glide:glide:3.8.0'

    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

    implementation 'android.arch.work:work-runtime:1.0.0-aplha02'


    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
    implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
        transitive = true
    }
apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案