question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CustomTabs not working with AndroidX

See original GitHub issue

After migrating project to AndroidX AppAuth-Android stop showing custom tabs and always open auth forms in standalone browser.

After quick research I found that issue with “jetifier” which process libraries and replace references from old support libraries to new androidx.

This constant https://github.com/openid/AppAuth-Android/blob/master/library/java/net/openid/appauth/browser/BrowserSelector.java#L54 changed to androidx.browser.customtabs.action.CustomTabsService which leads to break hasWarmupService

Yes it looks more like a jetifier bug. But knowing google I don’t think they will fix it.

Is it planned to migrate the library to androidx?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:30 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
tmduescommented, Oct 23, 2018

Is there a date when these changes are scheduled to be released yet?

4reactions
deepakmn86commented, Mar 14, 2019

This worked for me:

  1. Gradle version must be 5.1.1+ - Modify Gradle version in your gradlewrapper.properties as below.

distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

  1. Jetifier version must be 1.0.0-beta04+ - Add below line in your project level build.gradle dependencies section.

dependencies { //… classpath “com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta04” }

Read more comments on GitHub >

github_iconTop Results From Across the Web

983378 - CustomTabs client doesn't work with AndroidX
We're not planning on adding AndroidX support to custom-tabs-client, you should use the Android Browser Helper instead.
Read more >
Error on load Chrome Custom Tab in Android 11
Chrome custom tab work in every other device. Only error in Android 11 . Here is my code how I put I code...
Read more >
Using Custom Tabs with Android 11 - Chrome Developers
When an Android app using Custom Tabs targets SDK level 30 or above some changes may be necessary. This article goes over the...
Read more >
CustomTabsService | Android Developers
This class should be used by implementers that want to provide Custom Tabs functionality, not by clients that want to launch Custom Tabs....
Read more >
Best Practices for Custom Tabs - Medium
Provide a fallback for when Custom Tabs is not installed ... The Developer Show 004 — Android for Work, Chrome Dev Summit, Web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found