Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Error inflating class android.view.TextureView #90

Open
AhmedVargos opened this issue Mar 18, 2019 · 0 comments
Open

Error inflating class android.view.TextureView #90

AhmedVargos opened this issue Mar 18, 2019 · 0 comments

Comments

@AhmedVargos
Copy link

    • Better Video Player version: "kotlin-SNAPSHOT"
    • Device OS version: 8.1
    • Device Manufacturer: Huawei
    • Device Name: Nova 3I

And i use it like this

        videoPlayer.setSource(Uri.parse(uri))

-###### Reproduction Steps

-1. Just add the com.halilibo.bvpkotlin.BetterVideoPlayer in the xml
-2. In infalting the component i get the error

-###### Expected Result

  • Working video player

-###### Actual Result
Crashes in inflation with this stack trace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alialla.ftnshub/com.alialla.ftnshub.feature.home.viewMedia.MediaViewingActivity}: android.view.InflateException: Binary XML file line #44: Binary XML file line #7: Binary XML file line #7: Error inflating class android.view.TextureView
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3318)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3429)
        at android.app.ActivityThread.-wrap12(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2009)
        at android.os.Handler.dispatchMessage(Handler.java:109)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7555)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
     Caused by: android.view.InflateException: Binary XML file line #44: Binary XML file line #7: Binary XML file line #7: Error inflating class android.view.TextureView
     Caused by: android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class android.view.TextureView
     Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class android.view.TextureView
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Constructor.newInstance0(Native Method)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
        at android.view.LayoutInflater.createView(LayoutInflater.java:658)
        at android.view.LayoutInflater.onCreateView(LayoutInflater.java:714)
        at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:74)
        at com.android.internal.policy.HwPhoneLayoutInflater.onCreateView(HwPhoneLayoutInflater.java:107)
        at android.view.LayoutInflater.onCreateView(LayoutInflater.java:731)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:799)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
        at com.halilibo.bvpkotlin.BetterVideoPlayer.onFinishInflate(BetterVideoPlayer.kt:891)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:887)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:470)
        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
        at com.alialla.ftnshub.feature.home.viewMedia.MediaViewingActivity.onCreate(MediaViewingActivity.kt:16)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant