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

cordova/platforms/android/app/src/main/java/com/google/cordova/plugin/BrowserTab.java:21: error: cannot find symbol import android.support.customtabs.CustomTabsIntent; #46

Open
danieldanielecki opened this issue Jul 29, 2023 · 3 comments

Comments

@danieldanielecki
Copy link

cordova/platforms/android/app/src/main/java/com/google/cordova/plugin/BrowserTab.java:21: error: cannot find symbol
import android.support.customtabs.CustomTabsIntent;
                                 ^
  symbol:   class CustomTabsIntent
  location: package android.support.customtabs
cordova/platforms/android/app/src/main/java/com/google/cordova/plugin/BrowserTab.java:104: error: package CustomTabsIntent does not exist
    Intent customTabsIntent = new CustomTabsIntent.Builder().build().intent;
Screenshot 2023-07-29 at 18 35 01

While trying to run this project, already after fixing #43.

@danieldanielecki
Copy link
Author

Issue can be fixed by replacing import android.support.customtabs.CustomTabsIntent; with import androidx.browser.customtabs.CustomTabsIntent;.

We badly need #45 to be approved, then it should work out-of-the-box.

@ravi-bozz
Copy link

Issue can be fixed by replacing import android.support.customtabs.CustomTabsIntent; with import androidx.browser.customtabs.CustomTabsIntent;.

We badly need #45 to be approved, then it should work out-of-the-box.

@danieldanielecki did you got any update on #45 ?

@danieldanielecki
Copy link
Author

Issue can be fixed by replacing import android.support.customtabs.CustomTabsIntent; with import androidx.browser.customtabs.CustomTabsIntent;.
We badly need #45 to be approved, then it should work out-of-the-box.

@danieldanielecki did you got any update on #45 ?

nope; that's not my PR!

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