user3265784
user3265784

Reputation:

Rendering problems missing styles after every update

I get the "Rendering problems. Missing styles. Is the correct theme chosen for this layout?" and the gradle resolving without end after every android studio update, making my entire code non runnable. Only solution is to just recreate my project. Is there any solution to this? It is really, really annoying.

Upvotes: 8

Views: 19449

Answers (3)

Tim Vahlbrock
Tim Vahlbrock

Reputation: 113

Maybe a bit late, but this may help others... Had the same problem and had another Error below: failed to find '?attr/textEditSuggestionItemLayout' with 9 similar errors not shown. The textEdit, which i made bold above made me thinking if the error had something to do with the TextView and if the missing styles relate to the TextView Styles. Although I had no more TextView´s in my Layout I gave it a try and added <item name="android:textViewStyle" >@style/AppTheme</item> and it worked, no more error messages to this. Maybe this can still help someone.

Happy coding

Upvotes: 1

minipif
minipif

Reputation: 4866

Simply click on the Refresh icon:          

enter image description here

Upvotes: 7

Vit Veres
Vit Veres

Reputation: 782

Try to Invalidate Caches and Restart. In Android Studio go to the File menu and choose Invalidate Caches / Restart and confirm with Invalidate and Restart.

An image showing the appropriate menu item in Android Studio:

enter image description here

Upvotes: 29

Related Questions