No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

后端 未结 9 1815
孤街浪徒
孤街浪徒 2020-11-30 05:42

Can anybody help why I am getting an error in the following?

Error:(7, 41) No resource found that matches the given name (at \'dialogCornerRadius\'

9条回答
  •  时光取名叫无心
    2020-11-30 06:21

    forget about dynamic dependencies and replace them with fixed specific versions :

    WRONG :

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:26.+'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:design:+'
        compile files('libs/jxl-2.6.jar')
        compile 'com.google.gms:google-services:+'
    
        compile 'com.google.firebase:firebase-core:11.8.0'
        compile 'com.google.firebase:firebase-messaging:11.8.0'
    }
    

    CORRECT :

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:26.1.0'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:design:26.1.0'
        compile files('libs/jxl-2.6.jar')
        compile 'com.google.gms:google-services:3.1.1'
    
        compile 'com.google.firebase:firebase-core:11.8.0'
        compile 'com.google.firebase:firebase-messaging:11.8.0'
    }
    

提交回复
热议问题