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

Glide and YouTubeAndroidPlayerApi don't work together. #559

Closed
mucahitsidimi opened this issue Jul 30, 2015 · 4 comments
Closed

Glide and YouTubeAndroidPlayerApi don't work together. #559

mucahitsidimi opened this issue Jul 30, 2015 · 4 comments
Labels

Comments

@mucahitsidimi
Copy link

I added the glide-3.6.1.jar and YouTubeAndroidPlayerApi.jar to my project,
Before adding to glide , the youtube player was working clearly, when I added glide, something went wrong and when I try to open my YouTubePlayerFrag, onCreate() method I couldn't inflate my xml.

When I remove the glide, everything return normal.

@TWiStErRob
Copy link
Collaborator

Please include a stack trace from LogCat.

@mucahitsidimi
Copy link
Author

FATAL EXCEPTION: main
Process: com.myapp.main, PID: 17585
android.view.InflateException: Binary XML file line #9: Error inflating class fragment
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    at com.myapp.main.fragments.MyAppFrag.onCreateView(MyAppFrag.java:53)
    at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:938)
    at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115)
    at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478)
    at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:446)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5254)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.IllegalStateException: Fragment com.google.android.youtube.player.YouTubePlayerSupportFragment did not create a view.
    at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:314)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
    ... 19 more

can not inflate, when I remove glide from my project, everything running fine on existing code.

@TWiStErRob
Copy link
Collaborator

Aah, the key is "did not create view", read this: #518 (comment); hopefully you're just missing an id/tag.

@sjudd
Copy link
Collaborator

sjudd commented Aug 4, 2015

Closing as a duplicate of #518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants