Android学习笔记(4)----Rendering Problems(The graphics preview in the layout editor may not be accurate)
2016-09-07 11:22
597 查看
在Android Studio中新建了一个 setting.xml 文件,布局好文件后,从 Text 界面切换到 Design 界面,显示了如下错误:
网上搜寻 The graphics preview in the layout editor may not be accurate,还是没有解决该问题,后来想到自己新建的工程的 minSDKVersion 是15,而 Design界面中选择的渲染 API 是24,就想会不会是选择的渲染 API 太高了呢?就将渲染 API 调整成了15,结果如图:
还是有错误。
于是将渲染 API 调整成20:
界面就正确显示了。
认真试了一遍,API 16,17,18,19,20 都可以正常显示,其它 API 都会出现问题:
相关文章推荐
- "The graphics preview in the layout editor may not be accurate: Path.isConvex is not supported. (Ig
- Dispatch时产生了这个异常:does not contain handler parameter named ‘method’ This may be caused by whitespace in the label text
- myeclipse不能使用默认编辑器打开导入的struts项目的struts-config.xml,Therefore the MyEclipse Struts Editor may not be u
- 菜鸟解决方法 A class file was not written. The project may be inconsisten
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it
- MS-SQL 错误: The offset specified in a OFFSET clause may not be negative
- The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent.
- [Eclipse问题]A class file was not written. The project may be inconsistent
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- 编译错误:A class file was not written. The project may be inconsistent, if so try refreshing this projec
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- Rendering Problems The following classes could not be found
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- A class file was not written. The project may be inconsistent, if so try refreshing this project and
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- 『Android/Java』Android Studio XML Editor Preview Error:The following classes could not be found
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- 启动unity3d 提示“unity3d EditorWindow could not be loaded because the script is not found in the projec”