1. 程式人生 > >關於解決android studio的"rendering problems The following classes could not be found android.support.v7

關於解決android studio的"rendering problems The following classes could not be found android.support.v7

這個問題有3個解決方法:

1、更換當前的API版本;

2、更換app主題;(在layout的檔案的design介面中,有個AppTheme,點開後將預設的project theme更改成其它的即可);

前面兩種方法並不推薦使用,治標不治本。

3、開啟res/values/styles.xml檔案,將

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

更改為:

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"
>

即可。