使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
2016-04-21 15:35
627 查看
以前由于继承自ActionBarActivity用得好好的,现在直接继承Activity,使用AlertDialog,则会报以下这个错误:
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
可以这样解决
http://anforen.com/wp/2016/04/alertdialog-java-lang-illegalstateexception-you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity/
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
可以这样解决
http://anforen.com/wp/2016/04/alertdialog-java-lang-illegalstateexception-you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity/
相关文章推荐
- iOS app各种图片尺寸(Icon,Launchimg,应用市场)
- [!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfil
- 【小松教你手游开发】【unity实用技能】对象的简单平移与旋转
- Android里Service的bindService()和startService()混合使用深入分析
- 移动端设计尺寸基础知识
- Android手机蓝牙开发
- WebView 加载资源的三种方式 一般使用第二种方式与H5交互
- 通过WebApplicationContextUtils工具类获取ApplicationContext对象
- iOS自定义alertView提示框实例分享
- Android5.0如何将第三方so库打包到apk
- iOS开发 引入支付宝需要注意的地方
- 如何查看Android的Keystore文件的SHA1值
- Ubuntu下编译安装ngrok
- iOS开发-- 创建podspec文件,为自己的项目添加pod支持
- cocos2d-x如何优化内存的应用
- 那些年 Android Studio 遇到的坑
- C#在Unity游戏开发中进行多线程编程的方法
- 需求 - 5 - 悬浮框 - 3
- Android 处理窗口控件大小,形状,像素等工具
- android 高德地图出现【定位失败key鉴权失败】