1

I have tried clean build and restart the android studio but its not working. Any solution please!! the preview is not showing any change.

as the image shows that no change is observed in the picture

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
ZAIN Ali
  • 95
  • 9

2 Answers2

0

You can see the error by clicking that Red error symbol on right side upper corner in preview screen and share the error message here.

Just try to change the value inside Style.xml file from parent="Theme.AppCompat.Light.DarkActionBar" to parent="Base.Theme.AppCompat.Light.DarkActionBar". See if it works or not or share your error.

Thanks

Yash
  • 41
  • 1
  • 6
  • "Failed to load AppCompat ActionBar with unknown error." This is the error message that is shown in the screen – ZAIN Ali Aug 03 '18 at 11:21
  • Try to change Style.xml file as above and see if it works. – Yash Aug 03 '18 at 11:21
  • 1
    Oh it worked 166 down vote × Thanks for the feedback! Votes cast by those with less than 15 reputation are recorded, but do not change the publicly displayed post score. found it on this site, it works on me. Modify /res/values/styles.xml from: to: – ZAIN Ali Aug 03 '18 at 11:25
0

Change your Dependencies version to alpha1

Like

implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:28.0.0-alpha1'
arlo shie
  • 134
  • 1
  • 8