如果我尝试通过仿真器运行我的应用程序,它将不断停止..我该如何解决?这是我的日志:
2019-11-27 19:51:23.289 9621-9621/com.e.xmasplan E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.e.xmasplan, PID: 9621
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.e.xmasplan/com.e.xmasplan.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at com.e.xmasplan.MainActivity.onCreate(MainActivity.java:35) this line is blue printed.
这是第35行:userEmail = findViewById(R.id.email);xml文件中的id为email
转到MainActivity的xml并选择另一个主题,该主题位于您要在其上模拟代码的设备的模拟权下方,选择了应用程序或某种形式的主题