-
Notifications
You must be signed in to change notification settings - Fork 379
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
android.view.InflateException: Binary XML file line #19: Error inflating class com.devbrackets.android.exomedia.ui.widget.EMVideoView #270
Comments
Can you duplicate this with the demo app? |
Yes, I sent the demo app to someone who owns G2, and gets an exception in version 3.0.0 but not in version 2.5.6 . |
Hmm it looks like the platform is looking for an |
that's right. it is more odd that so far it has only happened in LG G2. |
I suppose you didn't change anything related to build tools and/or the support library in the gradle file? It looks like something goes wrong in the build process converting the vector drawable to the png. Can you upload the APK you used? I have an old HTC One SV running 4.2.1, maybe I can reproduce this. |
here is the file I sent to a friend to test it for me. but like I said I tested it on different devices such as note 2 which runs on 4.4.2 (same as G2) and it worked fine. https://drive.google.com/open?id=0ByKbRb-GeCOQY2VCY3Fyc0pOYW81c1dGbGZ4QnhUanNpdW1B |
And do these different devices fall in the xxhdpi category? |
I just checked it and no they don't. |
The PNG is in the file, so it must not understand that it should use it. Since it is searching for the XML. I'm at work now, will be home late today. So I'll have to try tomorrow. You can try enabling vector support via appcompat in your own app though. Maybe that'll make a difference. |
vectorDrawables.useSupportLibrary = true I tried the above command in my build.gradle file in my own project and the problem still persists. |
reproduced this on huawei honor 6 (xxhdpi and runs on 4.4.2) |
I haven't been able to reproduce this yet and I won't be able to for another week. But it's clear that something related to xxhdpi is going wrong. |
I'm wondering if it has anything to do with https://code.google.com/p/android/issues/detail?id=79325 |
you have not enabled the shrink resources in the demo app nor in the library so I don't think that is the cause. the above mentioned issued can be fixed by removing the shrink resources from the gradle file. |
@miladz68 were you ever able to figure out why this was happening? (as I don't have a device that repros it) |
@brianwernick No I haven't been able to debug this yet, though it is on my to do list. I have received this bug from other devices on my sentry server. It only happens in android 4.4.2 xxhdpi, and I will debug this If I get my hands on a device with that config. |
Hmm, I wonder if something like |
there is some possibility that this could solve this bug. let me know after you have applied it. I am still looking for a device with this config to fully investigate it. |
I'm going to migrate |
I'm going to close this in the hopes that #313 has fixed the issue. If it doesn't then lets open up a new issue |
Hello Brian, res/drawable-anydpi-v21/exomedia_ic_skip_previous_white.xml You can reproduce this issue by using an API 19 emulator configured as an LDPI device using an exoplayer with a custom VideoControls. Best regards, |
Has anyone figured out what is causing this issue? I'm still having it with the lastest exomedia 4.0.2 and all crashes point to that same Stack trace:
|
@pedro-almeida-clansoft @tonywamba Here is a sample layout : <ImageView
android:id="@+id/video_role_play_pause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"
app:srcCompat ="@drawable/exomedia_ic_pause_white" /> |
@rayworks So basically what should I do? I actually use ExoMedia without controls but still getting the same error. I was using 4.0.2 and I just upgraded my lib to 4.0.3. |
@tonywamba This doesn't look like its anything in ExoMedia that is causing the issue, rather that you have referenced the |
@brianwernick Thank you very much. I was referencing that |
Include the following:
3.0.0
4.4.2
LG
LG G2
-PHONE_MODEL:
LG-D802
Reproduction Steps
Expected Result
exomedia play the video.
Actual Result
exomedia throws an unhandled the exception. I have been able to produce this only in LG G2. on other
devices works fine.
Full Stacktrace
The text was updated successfully, but these errors were encountered: