Проблемы с каналом Youtube
Я получаю ошибки в моем приложении для анализа канала YouTube. В Android Studio на экране нет ошибок, но как только я запускаю эмулятор и нажимаю кнопку, чтобы начать свою деятельность, Android Monitor выявляет ошибку, приведенную ниже в коде. Я не уверен, что это значит, и хотел бы помочь понять, что я делаю неправильно. Я могу скомпилировать свой код на Github, если проще взглянуть на реальный код.
09-27 10:58:22.018 9710-9949/com.autismacademyed.www.autismacademy E/libEGL:
called unimplemented OpenGL ES API
09-27 10:58:28.228 9710-9710/com.autismacademyed.www.autismacademy
D/AndroidRuntime: Shutting down VM
09-27 10:58:28.229 9710-9710/com.autismacademyed.www.autismacademy
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.autismacademyed.www.autismacademy, PID: 9710
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.autismacademyed.www.autismacademy/com.autismacademyed.www.
autismacademy.SecondActivity}: java.lang.IllegalStateException: This
Activity
already has an action bar supplied by the window decor. Do not request
Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your
theme
to use a Toolbar instead.
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.IllegalStateException: This Activity already has an
action
bar supplied by the window decor. Do not request
Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your
theme
to use a Toolbar instead.
at android.support.v7.app.AppCompatDelegateImplV9.setSupportActionBar
(AppCompatDelegateImplV9.java:207)
at
android.support.v7.app.AppCompatActivity.setSupportActionBar
(AppCompatActivity.java:130)
at
com.autismacademyed.www.autismacademy.SecondActivity.onCreate
(SecondActivity.java:53)
at android.app.Activity.performCreate(Activity.java:6679)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)