报错如下:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test2/com.example.test2.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 解决方法:
创建的activity是MainActivity extends ActionBarActivity这样的。把后面的ActionBarActivity改成Activity,然后导包
相关文章
- 02-18java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or.....
- 02-18You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 02-18Android:真机调试遇到的问题(You need to use a Theme.AppCompat theme (or descendant) with this activity)
- 02-18报错:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 02-18You need to use a Theme.AppCompat theme (or descendant) with this activity 问题解决
- 02-18Android Studio:You need to use a Theme.AppCompat theme (or descendant) with this activity. AlertDialog
- 02-18Android studio使用android:style/Theme.Dialog报错:You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
- 02-18弹出AlertDialog的时候报You need to use a Theme.AppCompat theme (or descendant) with this activity错误
- 02-18You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 02-18java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this a