GithubHelp home page GithubHelp logo

Comments (7)

jahooma avatar jahooma commented on August 16, 2024

Same problem here, I think. I switched to version d08e93fce3 and it works.

from svgomg-twa.

jahooma avatar jahooma commented on August 16, 2024

Actually I might have a different error.

When I upgrade to com.github.GoogleChrome.custom-tabs-client:customtabs:91b4a1270b, I get the logcat error below.

Maybe my other dependencies are of the wrong version?

E/AndroidRuntime: FATAL EXCEPTION: main
Process: live.throne, PID: 10018
java.lang.IllegalAccessError: Method 'android.os.Bundle android.support.customtabs.CustomTabColorSchemeParams.toBundle()' is inaccessible to class 'androidx.browser.customtabs.CustomTabsIntent$Builder' (declaration of 'androidx.browser.customtabs.CustomTabsIntent$Builder' appears in /data/app/live.throne-EyZgOedElgYeooVfSZTF5w==/base.apk)
at androidx.browser.customtabs.CustomTabsIntent$Builder.build(CustomTabsIntent.java:746)
at android.support.customtabs.trusted.TrustedWebActivityIntentBuilder.build(TrustedWebActivityIntentBuilder.java:141)
at android.support.customtabs.trusted.TwaLauncher.launchWhenSplashScreenReady(TwaLauncher.java:185)
at android.support.customtabs.trusted.TwaLauncher.launchWhenSessionEstablished(TwaLauncher.java:178)
at android.support.customtabs.trusted.TwaLauncher.lambda$launchTwa$0$TwaLauncher(TwaLauncher.java:153)
at android.support.customtabs.trusted.-$$Lambda$TwaLauncher$f0OnWewitepqy4BDJ8g8HMz1oZ8.run(Unknown Source:8)
at android.support.customtabs.trusted.TwaLauncher$TwaCustomTabsServiceConnection.onCustomTabsServiceConnected(TwaLauncher.java:222)
at androidx.browser.customtabs.CustomTabsServiceConnection.onServiceConnected(CustomTabsServiceConnection.java:44)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1730)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1762)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

from svgomg-twa.

jahooma avatar jahooma commented on August 16, 2024

So I did a binary search through the versions of custom-tabs-client I saw on their github page. It turns out that this commit is causing my error: GoogleChrome/custom-tabs-client@59af545

Not sure what to do about that. In the meantime, if I use the version right before this from May 15th ('com.github.GoogleChrome.custom-tabs-client:customtabs:3e2f06a3b3'), I can use the splash screen loading feature, which was all I wanted for now. Maybe if I try again in a few months it will all magically be working?

from svgomg-twa.

tobiasharle avatar tobiasharle commented on August 16, 2024

@jahooma I am experiencing the same problem so I reported an issue

from svgomg-twa.

andreban avatar andreban commented on August 16, 2024

@jahooma @tobiasharle Are you using other libraries with the project? If not, it may be possible to disable jetifier (android.enableJetifier=false in gradle.properties) and then ensuring that you are not using other libraries in the apps build.gradle.

The android-browser-helper depends on an alpha version of androidx.browser and should go stable once that library goes stable as well.

from svgomg-twa.

tobiasharle avatar tobiasharle commented on August 16, 2024

@andreban At the time of writing I wasn't aware of android-browser-helper. Using that instead of custom-tabs-client solved the issue for me.

from svgomg-twa.

andreban avatar andreban commented on August 16, 2024

Closing the issue, as it's a Support Library issue and being tracked on Chromium bugs here: https://bugs.chromium.org/p/chromium/issues/detail?id=983378

from svgomg-twa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.