android studio 渲染错误的可能原因是什么?
What are the possible reasons for rendering error in android studio?
我正在使用 android studio 5.0。当我打开 Activity Layout 进行预览时,Layout 没有出现并报错 "Render problem"。有谁知道怎么解决的吗?
尝试在您的设计器预览中更改您的 android 版本,即呈现您的 xml.
Android Studio 中的布局渲染问题可以通过
修复
Workaround 1: First manually build the project, then manually sync the
project (using the Sync with Gradle files in the toolbar, or from the
Tools > Android menu), then finally press Refresh in the toolbar above
the layout editor.
Workaround 2: Switch the Android Gradle plugin from
1.2.x to 1.1.3 for now. When 1.2.3 is released you can switch back to the 1.2.x versions.
Workaround 3: If the above workarounds don't work
for you, and you are on windows, please try downloading a build from
https://drive.google.com/file/d/0B6b7eYGgoFdCTWFyYWlySExjUlE/view
which probably solves the issue.
我正在使用 android studio 5.0。当我打开 Activity Layout 进行预览时,Layout 没有出现并报错 "Render problem"。有谁知道怎么解决的吗?
尝试在您的设计器预览中更改您的 android 版本,即呈现您的 xml.
Android Studio 中的布局渲染问题可以通过
修复Workaround 1: First manually build the project, then manually sync the project (using the Sync with Gradle files in the toolbar, or from the Tools > Android menu), then finally press Refresh in the toolbar above the layout editor.
Workaround 2: Switch the Android Gradle plugin from 1.2.x to 1.1.3 for now. When 1.2.3 is released you can switch back to the 1.2.x versions.
Workaround 3: If the above workarounds don't work for you, and you are on windows, please try downloading a build from https://drive.google.com/file/d/0B6b7eYGgoFdCTWFyYWlySExjUlE/view which probably solves the issue.