做一個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>-->