android 3.1.3中的依赖问题

问题描述 投票:0回答:2
 dependencies {

 implementation fileTree(include: ['*.jar'], dir: 'libs')

 implementation 'com.android.support:appcompat-v7:28.0.0-rc01'

 implementation 'com.android.support.constraint:constraint-layout:1.1.2'

 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.android.support:recyclerview-v7:28.0.0-rc01'

implementation 'com.android.support:design:28.0.0-rc01'been 
}

关于Android studio 3.1.3appcompat-v7:28.0.0-rc01的依赖关系,甚至对于com.android.support.constraint类似的rc02,我都有错误:constraint-layout:1.1.2和1.1.3布局。我怎么解决呢?

dependency issues

build description app file for build

android android-studio dependencies
2个回答
0
投票

尝试使用较低版本的appcompat,如下所示:

implementation 'com.android.support:appcompat-v7:27.1.1'

还记得将sdkVersion更改为27


0
投票

我有这些依赖项,因此您可以根据需要使用任何依赖项,并确保在Settings-> Gradle中关闭Offline Work以使其正常工作。

当我通过在设置 - > Gradle中禁用离线工作时,我正在搜索这些错误,您可以使其同步而不会出现任何错误。

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-rc01'
testImplementation 'junit:junit:4.12'
// google play services
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

问候

© www.soinside.com 2019 - 2024. All rights reserved.