2

I am testing on API 27, Oreo (Virtual device)

The dependencies added are:

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

The error logcat:

java.lang.NoSuchMethodError: No virtual method addOnTabSelectedListener(Landroid/support/design/widget/TabLayout$OnTabSelectedListener;)V in class Landroid/support/design/widget/TabLayout; or its super classes (declaration of 'android.support.design.widget.TabLayout' appears in /data/app/com.not_relevant.not_relevant-N_xBMjVbkq_DVzGjxHFM6Q==/split_lib_dependencies_apk.apk)
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Kshitij Saxena
  • 930
  • 8
  • 19

1 Answers1

2

You can report this issue if you think that is a bug but, updating those libraries helps most of the times:

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

However, like mentioned, this happened while AndroidX and 28.0.0 version is available so you better use latest libraries-dependencies

ʍѳђઽ૯ท
  • 16,646
  • 7
  • 53
  • 108