Android Studio无法解析类Constraintlayout

时间:2018-12-02 19:32:56

标签: android-studio

我的Android Studio无法解析ConstraintLayout。 它表示IDE和所有插件均为最新版本。 我确实安装了“适用于Android的ConstraintLayout”和“适用于ConstraintLayout的求解器”,但是Android Studio仍然仅建议使用ConstraintTableLayout和ConstraintHorizo​​ntalLayout。 我还需要其他东西吗?

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'
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.android.support:support-media-compat:28.0.0'
    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'
}

0 个答案:

没有答案