添加后
implementation'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
android studio无法同步,并且出现此错误:
错误:无法解决:核心
波纹管是我所有的依赖物:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'com.android.volley:volley:1.1.1'
}
我应该提一下,如果我将constrainLayout降级为beta1,效果很好!
'androidx.core:core-ktx:1.2.0'