我已经设置了如下主题,为什么还是报 This Activity already has an action bar supplied by the window decor
错误?
下面是具体的错误信息:
07-09 02:30:03.304 W/System.err(28351): 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.
07-09 02:30:03.304 W/System.err(28351): at androidx.appcompat.app.AppCompatDelegateImpl.setSupportActionBar(AppCompatDelegateImpl.java:630)
07-09 02:30:03.304 W/System.err(28351): at androidx.appcompat.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:185)
07-09 02:30:03.304 W/System.err(28351): at top.matchs.app.android.activity.BaseActivity.onStart(BaseActivity.java:205)
07-09 02:30:03.304 W/System.err(28351): at top.matchs.app.android.activity.WebviewActivity.onStart(WebviewActivity.java:63)
07-09 02:30:03.304 W/System.err(28351): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1471)
07-09 02:30:03.304 W/System.err(28351): at android.app.Activity.performStart(Activity.java:8617)
07-09 02:30:03.304 W/System.err(28351): at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4798)
07-09 02:30:03.304 W/System.err(28351): at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:235)
07-09 02:30:03.304 W/System.err(28351): at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:215)
07-09 02:30:03.304 W/System.err(28351): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:187)
07-09 02:30:03.304 W/System.err(28351): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105)
07-09 02:30:03.304 W/System.err(28351): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3059)
07-09 02:30:03.304 W/System.err(28351): at android.os.Handler.dispatchMessage(Handler.java:117)
07-09 02:30:03.304 W/System.err(28351): at android.os.Looper.loopOnce(Looper.java:205)
07-09 02:30:03.304 W/System.err(28351): at android.os.Looper.loop(Looper.java:293)
07-09 02:30:03.304 W/System.err(28351): at android.app.ActivityThread.loopProcess(ActivityThread.java:9928)
07-09 02:30:03.304 W/System.err(28351): at android.app.ActivityThread.main(ActivityThread.java:9917)
07-09 02:30:03.304 W/System.err(28351): at java.lang.reflect.Method.invoke(Native Method)
07-09 02:30:03.304 W/System.err(28351): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
07-09 02:30:03.304 W/System.err(28351): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1233)
07-09 02:30:03.305 D/app:debug(28351): 当前线程[main]: ["exception","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."]