答案 0 :(得分:0)
之前:
build.gradle
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
compile 'com.android.support:support-v4:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
之后:
build.gradle
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
compile 'com.android.support:support-v4:26.0.0-alpha1'
删除 实施'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
可以。
原因: 我创建了新活动,Android Studio在build.gradle中添加了一行:
implementation 'com.android.support.constraint:constraint-layout:1.1.2'