Skip to content

Edoardo Vignati

– Always looking for something awesome –

Menu
  • About me
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • Travels  
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.

  1. Edoardo on [SOLVED] XMLHttpRequest error in Flutter web is a CORS error06/01/2023
  2. Fabi on [SOLVED] XMLHttpRequest error in Flutter web is a CORS error20/12/2022
  3. Edoardo on How to install hplip on Ubuntu28/11/2022
  4. Alex K on How to install hplip on Ubuntu28/11/2022

© 2023 Edoardo Vignati | Powered by Minimalist Blog WordPress Theme