The following classes could not be instantiated:
生活随笔
收集整理的這篇文章主要介紹了
The following classes could not be instantiated:
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Android studio新建項(xiàng)目xml文件不顯示Preview問題解決方法
報(bào)錯(cuò)如下:
1、The following classes could not be instantiated:
2、The following classes could no
3、Failed to load AppCompat ActionBar with unknown error.
找到values文件夾下面的styles.xml打開
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"><!-- Customize your theme here. --><item name="colorPrimary">@color/colorPrimary</item><item name="colorPrimaryDark">@color/colorPrimaryDark</item><item name="colorAccent">@color/colorAccent</item> </style>把DarkActionBar改為NoActionBar。再Rebuild Project即可
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"><!-- Customize your theme here. --><item name="colorPrimary">@color/colorPrimary</item><item name="colorPrimaryDark">@color/colorPrimaryDark</item><item name="colorAccent">@color/colorAccent</item> </style>總結(jié)
以上是生活随笔為你收集整理的The following classes could not be instantiated:的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iphone6 修改版本iccid解锁
- 下一篇: WebM视频格式怎么转换成MP4