0

not getting preview layout in my android studio 3.0. I have attached screenshot of it with big arrow showing no preview

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • 3
    Please click on the red-circle close to the Gradle tab found on the top-right of the screen and read what it says – orimdominic Jul 16 '18 at 12:06
  • it says:- Failed to load AppCompat ActionBar with unknown error. – droid worm Jul 16 '18 at 12:19
  • 1
    Please check these three links https://stackoverflow.com/questions/44449275/failed-to-load-appcompat-actionbar-with-unknown-error-in-android-studio https://stackoverflow.com/questions/47067706/failed-to-load-appcompat-actionbar-with-unknown-error-android-studio-3-0 and https://stackoverflow.com/questions/50781913/failed-to-load-appcompat-actionbar-with-unknown-error – orimdominic Jul 16 '18 at 12:23
  • thanks for comment,i got the solution through answer by tanchap (one with 118 upvotes) https://stackoverflow.com/questions/44449275/failed-to-load-appcompat-actionbar-with-unknown-error-in-android-studio – droid worm Jul 16 '18 at 12:31
  • congratulations :) Next time please make solid research on your questions before asking to avoid flagging of your questions or down voting, okay. – orimdominic Jul 16 '18 at 12:34
  • thanks,am new to stack overflow and android as well,thanks for help – droid worm Jul 16 '18 at 12:35

2 Answers2

0

Please go through this

1- Go to your res folder and inside res folder.
    2-Go to values.
    3-Go to style.xml
    4-change  <!-- Base application theme. -->
        <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    to <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
Vishal Sharma
  • 1,051
  • 2
  • 8
  • 15
0

you have three solutions 1 : clean the project and rebuild it.

2: if you are using target sdk 28 make it to 27 and change the implementaions to 27 and sync your project

3: close your project and reimport it