androidx.coordinatorlayout.widget.CoordinatorLayout上的InflateException

时间:2019-10-23 06:34:38

标签: android android-coordinatorlayout androidx

我不知道为什么发生此错误的原因将我的项目转换为androidX。我尝试了其他解决方案与

有关的stackoverflow解决方案

android.support.design.widget.CoordinatorLayout

不是

androidx.coordinatorlayout.widget.CoordinatorLayout

Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
        at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48)

这是我的依赖项

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.1.0-beta01'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.core:core-ktx:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation project(':weathermanager')
    //fonts
    implementation 'io.github.inflationx:calligraphy3:3.1.1'
    implementation 'io.github.inflationx:viewpump:2.0.3'

    //permission
    implementation 'com.nabinbhandari.android:permissions:3.8'
    //google maps
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    //event bus
    implementation 'org.greenrobot:eventbus:3.1.1'
    //location
    implementation 'com.google.android.gms:play-services-location:17.0.0'
}

0 个答案:

没有答案