Since today morning I started encountering this weird issue. Android Studio layout preview panel and Design view was not displaying some of my layouts which were perfectly fine until I updated Android Studio from 3.0.1 to 3.1.
I tried following which didn't helped :
Android Studio details :
Android Studio 3.1 Build #AI-173.4670197, built on March 22, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 8.1 6.3
In my case, I did build and then clicked Force Refresh Layout started showing preview
Try whether this solves your issue,
For Android Studio 3.1 Gradle version, with plugin version 28.0.0, add implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
instead of
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With