首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:无法解析: androidx.annotation.annotation:1.1.0:受影响的模块: app

错误:无法解析: androidx.annotation.annotation:1.1.0:受影响的模块: app
EN

Stack Overflow用户
提问于 2019-10-02 16:56:12
回答 1查看 6.5K关注 0票数 4

我试着添加这个包androidx.annotation.annotation:1.1.0来解决一些问题,但是我得到了这个

错误:无法解析: androidx.annotation.annotation:1.1.0:受影响的模块:应用程序这是我的build.gradle

代码语言:javascript
复制
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.jakewharton.hugo'
android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.app.test"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation group: 'com.google.guava', name: 'guava', version: '26.0-android'
    implementation 'com.google.firebase:firebase-core:17.2.0'
    implementation 'com.google.firebase:firebase-messaging:20.0.0'
    implementation 'androidx.annotation.annotation:1.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
    implementation 'com.squareup.retrofit2:retrofit:2.6.1'
    implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
    implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.4'
    implementation 'com.anjlab.android.iab.v3:library:1.0.44'
    implementation 'com.github.ViksaaSkool:AwesomeSplash:v1.0.0'
    implementation 'com.jakewharton:butterknife:10.1.0'
}

我能做些什么来解决这个问题

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-10-02 17:05:19

androidx.annotation.annotation:1.1.0不是正确的依赖项声明。

正确的答案是

代码语言:javascript
复制
androidx.annotation:annotation:1.1.0

Link

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58198304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档