在gradle中添加admob依赖项后出现错误。(androidx错误)

时间:2020-04-09 18:24:46

标签: android-studio dependencies admob build.gradle androidx

应用插件:“ com.android.application”

android { 编译版本29 buildToolsVersion“ 28.0.3” defaultConfig { applicationId“ arvindo.bassboster” minSdkVersion 14 targetSdkVersion 29 }

dependencies {
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:23.1.1'
    implementation 'com.google.android.gms:play-services-ads:19.0.1'

// ...其他依赖项 }

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

}

依赖性{

implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:23.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
//noinspection GradleCompatible
implementation 'com.android.support:design:23.4.0'

}

0 个答案:

没有答案