Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Android Studio cannot preview?

Posted on 25/09/201801/12/2020 by Edoardo

You are starting a new Android project, you open your Android Studio, Gradle is building…exciting!

You open your main activity .xml file, put a new button and….nothing happens. Android Studio won’t preview the layout of your application…damn…

Solution: for most of the tamplates that you can choose from the wizard, the fix is very simple. Go to app > res > values > styles.xml and find the row


and change (prepend “Base.” into the first line) to


and it works like a charm!


Buy Me A Coffee


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme