Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError---addOnTabSelectedListener #41

Open
CavellChance opened this issue Apr 27, 2019 · 2 comments
Open

java.lang.NoSuchMethodError---addOnTabSelectedListener #41

CavellChance opened this issue Apr 27, 2019 · 2 comments

Comments

@CavellChance
Copy link

我在项目中使用你的实例代码运行,直接闪退编译器报错: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.QianLiu.ilovedu-V7nBu3dS_MihIsRFOxzOIQ==/split_lib_dependencies_apk.apk)
我的gradle配置如下:
buildToolsVersion = '28.0.3'

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

我尝试改变build库的版本,没能解决,请问你这边有没有解决的思路,谢谢

@peterMa1999
Copy link

我的也是这个错

@CavellChance
Copy link
Author

我的也是这个错

一般方法找不到,多是因为引用的包不对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants