error inflating ConstraintLayout in android studio

前端 未结 8 2163
猫巷女王i
猫巷女王i 2020-12-06 16:25

I\'m having problems with Android Studio. I recently upgraded my SDK Manager to include;

compile \'com.android.support.constraint:constraint-layout:1.0.0-bet         


        
相关标签:
8条回答
  • 2020-12-06 17:04

    It may be number of reasons

    1. dependency version issue (same like above)

    2. out-of-memory issue : In my case I was added the high resolution image for background of the constraint-layout or in the same page(.xml file) we used the high resolution image for any imageview source.

    0 讨论(0)
  • 2020-12-06 17:05

    add to your app/build.gradle

    dependencies {
        ...
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        ...
    }
    
    0 讨论(0)
提交回复
热议问题