Just upgraded to Android Studio Electric Eel | 2022.1.1 i am unable to see any previews in my studio.
I have tried all possible ways but didn't find any solution for this. tried invalidated cache and restart , upgraded griddle version. tried changing the themes of screens. nothing worked .
any help ?
CodePudding user response:
There are a few things you can try to resolve this issue:
Make sure you have the latest version of the Android SDK installed and that it is compatible with your version of Android Studio.
Check your layout XML code for errors. If there are errors in your code, the preview may not be able to display properly.
Try running your app on an emulator or physical device to see if the issue is specific to the layout preview.
Check if there are any updates available for the Android Studio or any plugins you are using.
Try resetting your layout preview settings by going to
"File" -> "Settings" -> "Editor" -> "Layout Preview" -> "Reset Previews"
If none of these solutions work, you may want to consider posting a question on the Android Studio community forum for further assistance.
CodePudding user response:
It conflicts with material library. Don't use alpha version.
Change this:
implementation 'com.google.android.material:material:1.9.0-alpha01'
to this
implementation 'com.google.android.material:material:1.7.0'
CodePudding user response:
this is an known bug and i too faced the same issue.
Try installing the latest patch for Android Studio Electric Eel. It should fix the same.