gpt4 book ai didi

java - 在 Eclipse 中渲染 XML 期间引发异常

转载 作者:太空宇宙 更新时间:2023-11-04 13:28:21 25 4
gpt4 key购买 nike

当我尝试在 Eclipse 中查看 XML 文件时,出现以下错误:

Exception raised during rendering: Can't make a decor toolbar out of MockView
Exception details are logged in Window > Show View > Error Log
The following classes could not be instantiated:
- android.support.v7.internal.app.WindowDecorActionBar (Open Class, Show Error Log)
- android.support.v7.internal.widget.ActionBarContextView (Open Class, Show Error Log)
- android.support.v7.widget.Toolbar (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.

我已尝试重新启动 Eclipse,但错误仍然存​​在。

最佳答案

好吧,我不明白为什么你还在使用 Eclipse,我已经停止使用 Eclipse,现在是时候为你升级到 Android studio 了。我想我在 android studio 中也遇到了同样的错误,然后唯一对我有用的让我的 xml 正确渲染的技巧是以下技巧

您应该将渲染的 Android 版本更改为 21 或可能更晚:请参阅 this

我想在 Eclipse 中你可以很容易地找到这个......

关于java - 在 Eclipse 中渲染 XML 期间引发异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32440497/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com