Android Studio preview error

4

My problem is that after installing and updating Android Studio, I see an error in the design tab that does not let me see the appearance of the app or the changes I made to it.

PC specifications:

  
  • Intel i3 2328m
  •   
  • 4 gb Ram
  •   
  • Window 10 Home 64 Bits
  •   

    Those are the errors that the design tab shows me

    This comes to me when trying to download what the Android Studio asks for

        
    asked by Anibal Velasquez 23.06.2018 в 02:00
    source

    1 answer

    1

    What you can do is change within /res/values/styles.xml

    this

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    </style>
    

    for this

    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
    </style>
    

    The problem is in the buildTools and support library appCompat versions that you use

    You can also try on the gradle to change your appCompat for this

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

    and use the buildToolsVersion

    buildToolsVersion '26.0.0' 
    

    With these changes you should solve your problem, try the first one and if the second does not work

        
    answered by 23.06.2018 / 19:17
    source