You need to use a Theme.AppCompat theme (or descendant) with this activity解决
2015-05-26 18:34
525 查看
创建的第一个应用打开模拟器报错如下:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.itheima.mobilesafe/com.itheima.mobilesafe.SplashActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
with this activity.
解决办法:把extends ActionBarActivity改成extends Activity,导包之后就正常运行了。这是因为Android studio默认创建的时候是集成了ActionBarActivity
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.itheima.mobilesafe/com.itheima.mobilesafe.SplashActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
with this activity.
解决办法:把extends ActionBarActivity改成extends Activity,导包之后就正常运行了。这是因为Android studio默认创建的时候是集成了ActionBarActivity
相关文章推荐
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 【我的Android进阶之旅】解决bug:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决办法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- Android Studio You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
- 解决Android: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- 【Android】You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- Android解决在清单文件里消除Bar报错:You need to use a 原来Theme.AppCompat theme (or descendant) with this activity.
- you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
- 解决错误:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 关闭 You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法