Android Studio - 布局文件预览异常Unable to locate mode 0
2016-11-10 15:05
393 查看
最近使用android studio2.2创建项目时发现布局文件 无法预览,出现
在Stack Overflow上看到有人跟我遇到同样的问题,他的问题在这Android Studio - Exception raised during rendering: Unable to locate mode 0
出现此问题的原因是我使用的构建工具的版本是25.0.0,将其改为24.2.1就可以了。
以下是那个人的解决办法
Exception raised during rendering: Unable to locate mode 0
在Stack Overflow上看到有人跟我遇到同样的问题,他的问题在这Android Studio - Exception raised during rendering: Unable to locate mode 0
出现此问题的原因是我使用的构建工具的版本是25.0.0,将其改为24.2.1就可以了。
以下是那个人的解决办法
its because of the version of your build tool : 25.0.0 go to gralde.build and change it to 24.1.1 and let it download this version of build tool : 24.2.1 then change these codes : compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support:design:25.0.0' to : compile 'com.android.support:appcompat-v7:24.2.1' compile 'com.android.support:design:24.2.1' then sync once ! Booom its correct now :-)
相关文章推荐
- xml布局预览出现Exception raised during rendering: Unable to locate mode 0
- 布局文件预览:Rendering Problems Exception raised during rendering: Unable to find the layout for Action Bar.的解决
- ant生成文件报错:Unable to locate tools.jar. Expected to find it in ...
- 标准的文件加载(Web画面)出现异常错误:Unable to generate forwarding URL
- android studio 无法在可视化页面预览布局文件
- 关于Android Studio使用layout_toLeftOf这种相对布局属性时报错 , 找不到id和R文件的错误
- jxl读取excel文件异常:Unable to recognize OLE stream 的解决方法
- Hibernate异常:Unable to locate appropriate constructor on class
- Android Studio 无法在可视化页面预览布局文件
- android studio 无法在可视化页面预览布局文件
- android studio 无法在可视化页面预览布局文件
- android studio点击运行按钮出现:Unable to locate adb
- Hibernate异常:Unable to locate appropriate constructor on class
- Unable to locate secure storage module异常的解决方案
- Hibernate异常:Unable to locate appropriate constructor on class
- 配置可执行文件案例--The Eclipse executable launcher was unable to locate its companion shared library.
- jxl读取excel文件异常:Unable to recognize OLE stream
- Unable to locate Spring NamespaceHandler for XML schema namespace异常解决
- 【android studio】解决layout预览出现Rendering Problems Exception Unable to find the layout for Action Bar.
- Android studio 不能预览布局文件