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

Android crash when launch video #37

Open
michaelchow2324 opened this issue Mar 25, 2019 · 0 comments
Open

Android crash when launch video #37

michaelchow2324 opened this issue Mar 25, 2019 · 0 comments

Comments

@michaelchow2324
Copy link

My app crash when i do FlutterYoutube.playYoutubeVideoById on Android device, but it works fine on IOS device.

the log shows something like:

D/AndroidRuntime( 4571): Shutting down VM
E/AndroidRuntime( 4571): FATAL EXCEPTION: main
E/AndroidRuntime( 4571): Process: com.example.youtube, PID: 4571
E/AndroidRuntime( 4571): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.youtube/io.github.ponnamkarthik.flutteryoutube.PlayerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.hide()' on a null object reference
E/AndroidRuntime( 4571): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
E/AndroidRuntime( 4571): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
E/AndroidRuntime( 4571): at android.app.ActivityThread.-wrap12(ActivityThread.java)
E/AndroidRuntime( 4571): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
E/AndroidRuntime( 4571): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 4571): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime( 4571): at android.app.ActivityThread.main(ActivityThread.java:6119)
E/AndroidRuntime( 4571): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 4571): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
E/AndroidRuntime( 4571): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
E/AndroidRuntime( 4571): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.hide()' on a null object reference
E/AndroidRuntime( 4571): at io.github.ponnamkarthik.flutteryoutube.PlayerActivity.onCreate(PlayerActivity.java:33)
E/AndroidRuntime( 4571): at android.app.Activity.performCreate(Activity.java:6679)
E/AndroidRuntime( 4571): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
E/AndroidRuntime( 4571): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
E/AndroidRuntime( 4571): ... 9 more

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

No branches or pull requests

1 participant