Android Studio 3.2.1 design view is broken










1















The problem



I've started to notice that my Android Studio is showing some weird glitches lately when I'm working with layout files. It started by randomly breaking AS GUI, which was solved by a restart.



But since today, every time I try to open the design view, it breaks.



The picture below will show what I mean:



Glitch



As you can see, the UI is completely broken, I can't see most of the buttons, and sometimes not even that layout preview shows up. Is this a known issue?



I'm running Android Studio 3.2.1 stable on Windows 10 x64.



What I've tried so far



I have tried to:



  • Close AS and open it again;

  • Clean project;

  • Rebuild project;

  • Uninstall and reinstall AS;

  • Uninstall AS, remove the SDK, gradle caches, and everything related to Android, and then reinstall it again and let it download everything once more.

None of those things worked, unfortunately.



And for the sake of completeness, here's the layout I'm using:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/backdrop"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:importantForAccessibility="no"
android:src="@color/mds_indigo_400"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<android.support.v7.widget.AppCompatTextView
android:id="@+id/letter"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="14sp"
app:autoSizeMaxTextSize="26sp"
android:maxLines="1"
android:textColor="@color/secondaryLightText"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constraintStart_toStartOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="@id/backdrop"
tools:text="M" />

<TextView
style="@style/TextAppearance.AppCompat.Large"
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:textColor="@color/colorAccentDark"
app:layout_constraintStart_toEndOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constrainedHeight="true"
tools:text="Marketing"/>

</android.support.constraint.ConstraintLayout>









share|improve this question



















  • 1





    I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

    – Mauker
    Nov 15 '18 at 15:52
















1















The problem



I've started to notice that my Android Studio is showing some weird glitches lately when I'm working with layout files. It started by randomly breaking AS GUI, which was solved by a restart.



But since today, every time I try to open the design view, it breaks.



The picture below will show what I mean:



Glitch



As you can see, the UI is completely broken, I can't see most of the buttons, and sometimes not even that layout preview shows up. Is this a known issue?



I'm running Android Studio 3.2.1 stable on Windows 10 x64.



What I've tried so far



I have tried to:



  • Close AS and open it again;

  • Clean project;

  • Rebuild project;

  • Uninstall and reinstall AS;

  • Uninstall AS, remove the SDK, gradle caches, and everything related to Android, and then reinstall it again and let it download everything once more.

None of those things worked, unfortunately.



And for the sake of completeness, here's the layout I'm using:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/backdrop"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:importantForAccessibility="no"
android:src="@color/mds_indigo_400"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<android.support.v7.widget.AppCompatTextView
android:id="@+id/letter"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="14sp"
app:autoSizeMaxTextSize="26sp"
android:maxLines="1"
android:textColor="@color/secondaryLightText"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constraintStart_toStartOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="@id/backdrop"
tools:text="M" />

<TextView
style="@style/TextAppearance.AppCompat.Large"
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:textColor="@color/colorAccentDark"
app:layout_constraintStart_toEndOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constrainedHeight="true"
tools:text="Marketing"/>

</android.support.constraint.ConstraintLayout>









share|improve this question



















  • 1





    I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

    – Mauker
    Nov 15 '18 at 15:52














1












1








1








The problem



I've started to notice that my Android Studio is showing some weird glitches lately when I'm working with layout files. It started by randomly breaking AS GUI, which was solved by a restart.



But since today, every time I try to open the design view, it breaks.



The picture below will show what I mean:



Glitch



As you can see, the UI is completely broken, I can't see most of the buttons, and sometimes not even that layout preview shows up. Is this a known issue?



I'm running Android Studio 3.2.1 stable on Windows 10 x64.



What I've tried so far



I have tried to:



  • Close AS and open it again;

  • Clean project;

  • Rebuild project;

  • Uninstall and reinstall AS;

  • Uninstall AS, remove the SDK, gradle caches, and everything related to Android, and then reinstall it again and let it download everything once more.

None of those things worked, unfortunately.



And for the sake of completeness, here's the layout I'm using:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/backdrop"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:importantForAccessibility="no"
android:src="@color/mds_indigo_400"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<android.support.v7.widget.AppCompatTextView
android:id="@+id/letter"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="14sp"
app:autoSizeMaxTextSize="26sp"
android:maxLines="1"
android:textColor="@color/secondaryLightText"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constraintStart_toStartOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="@id/backdrop"
tools:text="M" />

<TextView
style="@style/TextAppearance.AppCompat.Large"
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:textColor="@color/colorAccentDark"
app:layout_constraintStart_toEndOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constrainedHeight="true"
tools:text="Marketing"/>

</android.support.constraint.ConstraintLayout>









share|improve this question
















The problem



I've started to notice that my Android Studio is showing some weird glitches lately when I'm working with layout files. It started by randomly breaking AS GUI, which was solved by a restart.



But since today, every time I try to open the design view, it breaks.



The picture below will show what I mean:



Glitch



As you can see, the UI is completely broken, I can't see most of the buttons, and sometimes not even that layout preview shows up. Is this a known issue?



I'm running Android Studio 3.2.1 stable on Windows 10 x64.



What I've tried so far



I have tried to:



  • Close AS and open it again;

  • Clean project;

  • Rebuild project;

  • Uninstall and reinstall AS;

  • Uninstall AS, remove the SDK, gradle caches, and everything related to Android, and then reinstall it again and let it download everything once more.

None of those things worked, unfortunately.



And for the sake of completeness, here's the layout I'm using:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/backdrop"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:importantForAccessibility="no"
android:src="@color/mds_indigo_400"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<android.support.v7.widget.AppCompatTextView
android:id="@+id/letter"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="14sp"
app:autoSizeMaxTextSize="26sp"
android:maxLines="1"
android:textColor="@color/secondaryLightText"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constraintStart_toStartOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="@id/backdrop"
tools:text="M" />

<TextView
style="@style/TextAppearance.AppCompat.Large"
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:textColor="@color/colorAccentDark"
app:layout_constraintStart_toEndOf="@id/backdrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/backdrop"
app:layout_constraintBottom_toBottomOf="@id/backdrop"
app:layout_constrainedHeight="true"
tools:text="Marketing"/>

</android.support.constraint.ConstraintLayout>






android android-studio android-studio-3.2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 15:45







Mauker

















asked Nov 15 '18 at 15:36









MaukerMauker

8,00063759




8,00063759







  • 1





    I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

    – Mauker
    Nov 15 '18 at 15:52













  • 1





    I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

    – Mauker
    Nov 15 '18 at 15:52








1




1





I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

– Mauker
Nov 15 '18 at 15:52






I'm stupid and the problem was on my layout. I had a loose constraint on it. As in: app:layout_constraintEnd_toStartOf="". I fixed it and it works again (or at least it looks like it).

– Mauker
Nov 15 '18 at 15:52













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322872%2fandroid-studio-3-2-1-design-view-is-broken%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322872%2fandroid-studio-3-2-1-design-view-is-broken%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

ReactJS Fetched API data displays live - need Data displayed static

政党