【发布时间】:2015-03-13 18:15:16
【问题描述】:
在我的 android XML 图形布局中,它无法显示我的ToggleButton。我收到一些错误(见下文)。我检查了调色板窗口中的所有其他组件,唯一无法加载的组件是ToggleButton。问题不是特定于项目的。它存在于我创建的每个项目中。
注意:我尝试过直接拖动它以及使用 XML 代码生成它。但无论哪种方式都失败了,错误是一样的。
错误:
Exception raised during rendering: -1
Exception details are logged in Window > Show View > Error Log
The graphics preview in the layout editor may not be accurate:
Different corner sizes are not supported in Path.addRoundRect. (Ignore for this session)
Path.isConvex is not supported. (Ignore for this session)
我已提交this 问题并尝试对其进行编辑,但编辑被拒绝。所以请不要把我重定向到那里。
我正在使用 API 21。所有构建工具都已安装。
【问题讨论】:
-
尝试切换
android studio,因为它是官方IDE -
我使用了
checkbox而不是togglebutton,但我真的很想知道为什么togglebutton不起作用。 -
我可以补充一点,在 Android Studio 中也会出现同样的问题。
标签: android xml eclipse android-togglebutton