Android Studio cannot resolve symbol 'TabLayout'

前端 未结 6 1719
悲哀的现实
悲哀的现实 2020-12-15 05:05

Cannot resolve symbol TabLayout ? How to clear this error? Please help me. I already imported import android.support.design.widget.TabLayout;

6条回答
  •  悲哀的现实
    2020-12-15 05:42

    I solved the issue Manually by adding the following two lines:

    implementation 'com.android.support:support-v4:22.2.0'
    implementation 'com.android.support:design:22.2.0'
    

    under dependencies in \app\build.gradle worked for me.

    Note: Your all the support libraries have to be the same version i.e. appcompat-v7 and support-v4 to same version e.g. 23.0.1; otherwise you can get this error

    java.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintManager` after code build

提交回复
热议问题