做一个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> <!--<!– Application theme. 用于4.0 以上版本 因为要使用融云的关系 使用上面的那个 2.3以上的版本加载 –>--> <!--<style name="AppTheme" parent="AppBaseTheme">--> <!--<!– All customizations that are NOT specific to a particular API-level can go here. –>--> <!--</style>-->