android studio 导入 融云问题之一 兼容4.0一下版本

做一个APP,添加聊天功能,使用了融云SDK,用studio开发(基本开发区看融云主页)。

遇到问题:

java.lang.RuntimeException: 

     Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

不想兼容4.0以下版本的用户了,人数少。新建工程以4,0开最低版本的,但是融云要兼容2.3的版本。。。。它要兼容就兼容吧,导入V7jar包把,

一切都没问题了,但是融云的布局文件一直报错,最后查出的原因是:



<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
</style>


<!--&lt;!&ndash; Application theme.   用于4.0 以上版本 因为要使用融云的关系  使用上面的那个 2.3以上的版本加载 &ndash;&gt;-->
<!--<style name="AppTheme" parent="AppBaseTheme">-->
    <!--&lt;!&ndash; All customizations that are NOT specific to a particular API-level can go here. &ndash;&gt;-->
<!--</style>-->


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值