问题
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.
回答1:
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:
回答2:
Simply click on the Refresh
icon:
回答3:
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
来源:https://stackoverflow.com/questions/24109260/rendering-problems-missing-styles-after-every-update