[英]Android Studio Electric Eel | 2022.1.1 not showing Previews
Just upgraded to Android Studio Electric Eel |刚升级到Android Studio Electric Eel | 2022.1.1 i am unable to see any previews in my studio.
2022.1.1 我无法在工作室中看到任何预览。
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?有帮助吗?
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.确保您安装了最新版本的 Android SDK,并且它与您的 Android Studio 版本兼容。
Check your layout XML code for errors.检查您的布局 XML 代码是否有错误。 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.检查 Android Studio 或您正在使用的任何插件是否有可用的更新。
Try resetting your layout preview settings by going to "File" -> "Settings" -> "Editor" -> "Layout Preview" -> "Reset Previews"
尝试通过转到
"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.如果这些解决方案均无效,您可能需要考虑在 Android Studio 社区论坛上发帖寻求进一步帮助。
It conflicts with material library.它与材料库冲突。 Don't use alpha version.
不要使用 alpha 版本。
Change this:改变这个:
implementation 'com.google.android.material:material:1.9.0-alpha01'
to this对此
implementation 'com.google.android.material:material:1.7.0'
this is an known bug and i too faced the same issue.这是一个已知的错误,我也遇到了同样的问题。
Try installing the latest patch for Android Studio Electric Eel.尝试安装 Android Studio Electric Eel 的最新补丁。 It should fix the same.
它应该修复相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.