Android Studio 3.1.3 Does Not Show Layout Desing Preview
It has passed some time since the last time I have created a new project in android studio and today when I did it the android studio does not show anything from the layout preview
Solution 1:
Solution 2:
Did you update classpath
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.1.0'
}
Solution 3:
Try this way, switch to your Design/Text tab in layout editor. And check the preview window. Preview will be there.
I don't know how this works but I frequently using this hack when my preview isn't working since I upgraded to android studio 3.1.3.
PS: This hack only applies to empty preview (none of the elements or menu items or options or messages are visible in the preview pane).
Solution 4:
please replace
compileSdkVersion 28
buildToolsVersion '28.0.0'
targetSdkVersion 28
implementation 'com.android.support:appcompat-v7:28.0.0-beta01'
with
compileSdkVersion 27
buildToolsVersion '27.0.3'
targetSdkVersion 27
implementation 'com.android.support:appcompat-v7:27.1.1'
Solution 5:
click on the Eye icon in the selected area, in the pop-up window
enable Show Layout Decorations
.
If the magnet next to the eye icon is active, make it inactive.
Have a nice day.
Post a Comment for "Android Studio 3.1.3 Does Not Show Layout Desing Preview"