在Android Studio 2.3.1中,约束的图形编辑非常慢

时间:2017-05-28 19:26:53

标签: android android-studio layout constraints

我在android studio的大多数UI中使用约束布局,但在图形编辑器中设计它非常慢。 应用约束非常慢。

我的笔记本电脑很好.i7第5代16 gb ram和500 ssd。我认为应该没有性能限制。问题出在android studio中。 如何提高图形编辑器的性能。请帮忙。

使用图形编辑器时,CPU使用率也高达50%。

1 个答案:

答案 0 :(得分:8)

要提高绩效,有三点需要注意:

  1. 增加Android Studio的VM堆大小:https://developer.android.com/studio/intro/studio-config.html#adjusting_heap_size

  2. 将设计图面切换为仅蓝图模式:https://developer.android.com/studio/write/layout-editor.html#change-appearance

  3. 确保使用最新版本的Constraint Layout库v1.0.2:https://androidstudio.googleblog.com/2017/03/constraintlayout-102-is-now-available.html