Com.android.support:customtabs: no virtual launchUrl method

java.lang.NoSuchMethodError: No virtual method launchUrl(Landroid/app/Activity;Landroid/net/Uri;)V in class Landroid/support/customtabs/CustomTabsIntent 

Before everything worked, but today I see the above error. Why it happens? if something has changed, why not come back?

+8
android chrome-custom-tabs
source share
1 answer

I don’t know if this helps you, but in my case (I have a Facebook SDK in tabs with custom tabs ), this error occurred when a user (without Facebook installed) tried to log in.

 Exception java.lang.NoSuchMethodError: No virtual method launchUrl(Landroid/app/Activity;Landroid/net/Uri;)V in class Landroid/support/customtabs/CustomTabsIntent; or its super classes com.facebook.internal.CustomTab.openCustomTab (CustomTab.java:48) 

Dependency update to use the latest SDK (they switched to customtabs: 25.0.0 in version 4.17.0)

 compile 'com.facebook.android:facebook-android-sdk:4.17.0' 

fixed problem.

I also use custom tabs (v25.0.0) in my application and have no problems with them. If this is not your case, you can check that they have changed .

+16
source share

All Articles