简体   繁体   English

Android 工作室电鳗 | 2022.1.1 不显示预览

[英]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:您可以尝试以下几种方法来解决此问题:

  1. 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 版本兼容。

  2. Check your layout XML code for errors.检查您的布局 XML 代码是否有错误。 If there are errors in your code, the preview may not be able to display properly.如果您的代码有错误,预览可能无法正常显示。

  3. Try running your app on an emulator or physical device to see if the issue is specific to the layout preview.尝试在模拟器或物理设备上运行您的应用,看看问题是否特定于布局预览。

  4. Check if there are any updates available for the Android Studio or any plugins you are using.检查 Android Studio 或您正在使用的任何插件是否有可用的更新。

  5. 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.

相关问题 Android 工作室电鳗 | 2022.1.1 越来越慢 - Android Studio Electric Eel | 2022.1.1 is Getting Slow Android Studio (海豚 | 2021.3.1) & (电鳗 | 2022.1.1) 不显示布局预览 - Android Studio (Dolphin | 2021.3.1) & (Electric Eel | 2022.1.1) does not show layout preview Android 电鳗工作室更新失败 - Android Studio Electric Eel Update Failure Android 电鳗工作室:javaHome好像无效 - Android Studio Electric Eel: javaHome seems to be invalid Gradle Electric Eel 后项目同步失败 | 2022.1.1更新 - Gradle project sync failed after Electric Eel | 2022.1.1 update 将 Android Studio 升级到 Electric Eel 后,任务“:app:processDebugMainManifest”执行失败 - Execution failed for task ':app:processDebugMainManifest' after upgrading Android Studio to Electric Eel Android Studio Electric Eel 的新 Logcat - 如何只获取我手动记录的日志? - Android Studio Electric Eel's New Logcat - How do I get only the logs I manually logged? 如何在Android Studio Electric Eel的编辑器中禁用Git信息(Inlay Hints)? - How to disable Git information (Inlay Hints) in editor in Android Studio Electric Eel? Android Studio 主题编辑器不显示预览 - Android Studio Theme editor not showing previews Android Studio主题编辑器未显示预览? - Android Studio Theme editor not showing previews?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM