Program type already present: android.support.constraint.BuildConfig

前端 未结 3 1463
谎友^
谎友^ 2021-02-19 19:07

build.gradle (Module: app)

apply plugin: \'com.android.application\'

android {
    compileSdkVersion \'android-P\'
    buildToolsVersion \'27.0         


        
3条回答
  •  无人共我
    2021-02-19 19:31

    Be careful not to reference com.android.support.constraint:constraint-layout and androidx.constraintlayout:constraintlayout at the same time. Settle on one (preferably androidx), remove the other, and make sure the package names are consistent in your layout files too. That fixed the issue for me.

提交回复
热议问题