I just updated my Android Studio to latest 3.0 and then the Layout Preview is not working anymore. I have tried open up different projects and they all have the same render issues. As I checked, I don't see any compile errors or gradle issues. So far, I tried
- Build Project
- Refresh Layout
- Clean Project
- Invalid Caches / Restart
The following attached screenshot shows that some classes cannot be initiated but I dont get why and how to fix them. Thank you very much. Any hints could help.
Updates: It seems there is a duplicate case at Render error in Android Studio 3.0 Layout Editor but mine problem is slightly different. The solution for above linked issue is to modify the theme to a more specific one by clarifying parent theme under Base.Theme.AppCompat.Light.DarkActionBar. However, I don't even have an ActionBar so I am looking for a solution for Theme.AppCompat.NoActionBar.
Before updating to 3.0, everything is fine. I wonder if I need to change deployment SDK/Version.