Android 工作室设计师(渲染)

Android Studio designer ( Rendering)

我是 android 工作室 (v1.5.1) 的初学者。 我的项目已经构建成功,但是我在设计器中遇到了问题。

Rendering Problems
Missing styles. Is the correct theme chosen for this layout?
use the Theme combo box above the layout to choose a different layout, or fix the theme style references.

注意:我尝试了不同的主题...

在右侧的预览窗格中,将您的 API 级别降低到一些 API 它很可能会解决您的问题。

对于 Android Studio(或 IntelliJ IDEA),

如果您的项目中一切正常,但您仍然收到布局错误,请尝试 'Invalidate caches & restart'。

在 Android Studio 重新创建缓存和索引的同时喝杯咖啡。

如何使缓存失效并重新启动