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>-->


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章