android studio编程时出现的错误:you need to use a theme.appCompat theme(or descendant) with this a
来源:互联网 发布:大数据采集系统源代码 编辑:程序博客网 时间:2024/06/03 13:18
用Android Studio中设置activity的theme时候出现的问题:
java.lang.illegalStateException : you need to use a theme.appCompat theme(or descendant) with this activity.
出现这种问题原因是:你的布局xml文件有 support-V7 上的控件,而你的AndroidManifest里的该activity的theme名字写成这种形式(或者其他形式),如:<style name="translucent"> (错误写法)
正确的是<style name="translucent">里的name要前要添加 AppTheme,如:
<style name="AppTheme.translucent"> (正确写法)
【否则会报出这种错误:You need to use a Theme.AppCompat theme (or descendant) with the design library.】如(AndroidManifest.xml):<activity android:name=".ui.activity.NewsCommentActivity" android:theme="@style/AppTheme.translucent" />
translucent是我在style.xml写的一个stlye,如:<style name="AppTheme.translucent" > <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style>
0 0
- android studio编程时出现的错误:you need to use a theme.appCompat theme(or descendant) with this a
- Android Studio 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
- Android Studio: 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.
- Android 解决错误: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.
- Material Design出现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
- 解决错误: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
- 【Android】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.
- Android--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.
- UML类图中箭头和线条的含义和用法
- 微信课堂如何制作
- mysql master 和slave的replication
- 机器学习:深入理解LSTM网络 (二)
- CSS引入方法中link和@import方法的区别
- android studio编程时出现的错误:you need to use a theme.appCompat theme(or descendant) with this a
- Android主流网络请求开源库的对比(Android-Async-Http、Volley、OkHttp、Retrofit)
- ExtJs——Ext.window.Window
- node.js 占用8080 端口的结束方案
- struts 不同包package之间的带参传递
- 报表加锁定表头后无法居中显示
- c# string类操作
- node js 进程守护神forever
- LED点阵