Rendering problems missing styles after every update

萝らか妹 提交于 2019-12-21 10:41:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!