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!
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.