-3

I am not able to see the preview in the Android layout like the toolbar or the ActionBar. Below is the screenshot of the app:

enter image description here

Thanks.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

2

Check if you are using SDK 28 as SDK 28 has a bug. Change

compileSdkVersion 28
targetSdkVersion 28

to

compileSdkVersion 27
targetSdkVersion 27

and use this in build.gradle:

implementation 'com.android.support:appcompat-v7:27.1.1'

If you're not using SDK 28, you can try Build -> Clean Project or restart Android Studio.

Michael Dodd
  • 10,102
  • 12
  • 51
  • 64