Android studio 无法组合使用groupId com.android.support和androidx.*的依赖项
我同步了我的项目,然后我得到了这些,我的清单代码是:Android studio 无法组合使用groupId com.android.support和androidx.*的依赖项,android-studio,android-manifest,Android Studio,Android Manifest,我同步了我的项目,然后我得到了这些,我的清单代码是: android { compileSdkVersion 28 defaultConfig { applicationId "chtaibi.yahya.footballcards" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.sup
android {
compileSdkVersion 28
defaultConfig {
applicationId "chtaibi.yahya.footballcards"
minSdkVersion 15
targetSdkVersion 28
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 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
implementation 'com.google.android.gms:play-services-ads:18.1.1'
}
你能帮我吗
*****看起来你的帖子大部分都是代码;请添加更多详细信息。您可以通过从菜单栏选择
重构>迁移到AndroidX
将现有项目迁移到
AndroidX将原来的支持库API替换为中的软件包
androidx名称空间。只有包和Maven工件的名称
改变;类、方法和字段名没有更改
升级版本
compileSdkVersion 29
defaultConfig {
targetSdkVersion 29
buildToolsVersion '29.0.2'
}
您的依赖项将
implementation 'com.google.android.material:material:1.2.0-alpha03'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'