android studio 無法在可視化頁面預覽佈局文件

Rendering Problems

 

the following classes could not be found:

android.support.v7.internal.widget.ActionBarOverlayLayout(Fix Build Path, Edit XML, Create Class) 

Tip: Try to build the project

 

解決辦法:

style文件中theme改一下

 

Theme.AppCompat.Light.DarkActionBar前面加上Base.  如下

 

<!-- Base application theme. -->

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

  <!-- Customize your theme here. -->

</style>

 

當然,開發完APP也是需要進行全方位的檢測:www.ineice.com


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