Android学习之路--问题及解决方案

问题一:

  在IntelliJ IDEA/Andoroid Studio中,无法在可是化界面预览布局文件。提示信息如下:

  Rendering Problems

  The following classes could not be found:

    - android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Edit XML, Create Class)

  Tip:Try to build the project.

  

解决方案:

  修改styles.xml文件,在“Theme.AppCompat.Light.DarkActionBar”前面加上“Base.”

  

<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
  <!-- Customize your theme here. -->
</style>

 

  

posted on 2015-11-28 18:29  秋水共長天一色  阅读(231)  评论(0)    收藏  举报

导航