Error inflating class android.support.design.widget.CoordinatorLayout and ClassNotFoundException: android.support.design.R$styleable

后端 未结 5 477
时光取名叫无心
时光取名叫无心 2020-11-30 13:21

I am developing an app which have Tab with swipe functionality. I am using Eclipse to develop. I have imported the support design library as Library through Pro

5条回答
  •  天命终不由人
    2020-11-30 14:02

    I got this error while Migrating to AndroidX

    To resolve I did:

    1. as suggested by @Mikeumus - and added this to the module's build.gradle dependencies:

      implementation 'androidx.coordinatorlayout:coordinatorlayout:latest.version.here'

    2. check in the Layout XML file (the layout that you're trying to launch with setContentView

    if the Layout contains: <android.support.design.widget.CoordinatorLayout ...

    replace that with :

    1. in the same layout file - replace the closing tag

    with

提交回复
热议问题