java.lang.NoSuchMethodError: No virtual method addOnTabSelectedListener(Landroid/support/design/wi

java.lang.NoSuchMethodError: No virtual method addOnTabSelectedListener(Landroid/support/design/widget/TabLayout$BaseOnTabSelectedListener;V in class Landroid/support/design/widget/TabLayout; or its super classes declaration of 'android.support.design.widget.TabLayout' appears in /data/app/com.bs.gnc-qM-0qCoALLQpS2mUU4eZWg==/base.apk!classes2.dex


关于上面问题的处理办法如下:

    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'

检查android support 包下面模块的版本号是否一致。不一致会导致程序在运行时异常退出。

你可能感兴趣的:(问题记录,android)