Home > Mobile >  Android studio, click on the add button to flash back jump avtivity
Android studio, click on the add button to flash back jump avtivity

Time:12-02

Will also have to jump jump activity monitor button
Here is a list of the Error in Logcat
2020-06-03 18:21:40.618 8297-8297/com.jxswkj.qy_speak E/AndroidRuntime: FATAL EXCEPTION: main Process: com.jxswkj.qy_speak, PID: 8297 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jxswkj.qy_speak/com.jxswkj.qy_speak.FengmianActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:555) at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.jxswkj.qy_speak.FengmianActivity.onCreate(FengmianActivity.java:22) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

CodePudding user response:

Has been registered in androidmanifest.xml all activity in the project

CodePudding user response:

You need to use a Theme AppCompat Theme (or descendant) with this activity.

This is the error log, you give that activity in the manifest a this topic should be ok, "the Theme. AppCompat"

CodePudding user response:

refer to the second floor le540850072 response:
You need to use a Theme AppCompat Theme (or descendant) with this activity.

This is the error log, you give that activity in the manifest a this topic should be ok, "Theme. AppCompat"

Thank you for your bosses to give directions, I try,