Android-youtube-player: App Crashes with latest androidx.appcompat:appcompat:1.1.0

Created on 13 Sep 2019  Â·  14Comments  Â·  Source: PierfrancescoSoffritti/android-youtube-player

When upgrading to the recently released appcompat 1.1.0, app started crashing with the following error.

java.lang.RuntimeException: Unable to start activity ComponentInfo{.......}:
android.view.InflateException: Binary XML file line #10: Error inflating class 
com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView
...
...
...
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040003

I can confirm that the core-sample-app also crashes when the appcompat version is updated in dependencies.gradle and recompiled.

This is the same issue as the comment posted by @gajicm93 in https://github.com/PierfrancescoSoffritti/android-youtube-player/issues/419#issuecomment-530714754_, however, the conclusion seems to be wrong. This isn't an old bug, but something new.

The resolution for now is to keep using appcompat 1.0.2 till this is fixed in the player library.

bug

Most helpful comment

it looks like appcompat:1.2.0-alpha02 fixes the WebView related crash

All 14 comments

+1 thanks for the info! Looking forward to the fix.

Hey, thanks for reporting the issue. I'll try to fix it today.

I've tried but failed. I'm traveling and don't have my main SIM card with me, meaning: two factor authentication locks me out of my accounts. I'll do everything next week when I'll be back home.

I have just tried running the sample app using appcompat version 1.1.0, everything works fine.

Are you sure you're using the player correctly? if autoplay is set to true you need to provide a videoid.

With 1.1.0, Crashes for me on API 22 emulator, works fine on API 28 emulator.

Ok, it does crash on api 22. I'll release the new version in a few hours.

It looks like it's a bug with appcompat itself: issues/141132133. I think we'll have to wait for Google to fix it.

Is this bug solved in 10.0.4?

The bug is not in android-youtube-player but in appcompat 1.1.0.

I get that, am asking if the version of appcompat is downgraded in 10.0.4
to 1.0.2

On Sun, 13 Oct 2019, 2:25 pm Pierfrancesco Soffritti, <
[email protected]> wrote:

The bug is not in android-youtube-player but in appcompat 1.1.0.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PierfrancescoSoffritti/android-youtube-player/issues/430?email_source=notifications&email_token=ABZEDEDZNUOQYNLLQ5DBX2DQOMARBA5CNFSM4IWSLUA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCUFWY#issuecomment-541410011,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZEDECJOEU5IM37OWDEYDDQOMARBANCNFSM4IWSLUAQ
.

No, the library is fine. You have a problem if you use 1.1.0 yourself.

Got it. Thanks

Thank you,
Brook Mezgebu

On Sun, 20 Oct 2019, 11:51 am Pierfrancesco Soffritti, <
[email protected]> wrote:

No, the library is fine. You have a problem if you use 1.1.0 yourself.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PierfrancescoSoffritti/android-youtube-player/issues/430?email_source=notifications&email_token=ABZEDEHF6XM2CZSSMXFSW6DQPQLZVA5CNFSM4IWSLUA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYFPCA#issuecomment-544233352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZEDEAXZTCKMENKAUMULADQPQLZVANCNFSM4IWSLUAQ
.

it looks like appcompat:1.2.0-alpha02 fixes the WebView related crash

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mankidal19 picture mankidal19  Â·  8Comments

hannojg picture hannojg  Â·  4Comments

cnbcyln picture cnbcyln  Â·  8Comments

divyas93 picture divyas93  Â·  7Comments

MatanKoby picture MatanKoby  Â·  4Comments