在我的Android XML图形界面中,无法显示我的
注意:我已经尝试直接拖动它以及使用XML代码生成它。但两种方式都失败了,错误是相同的。
错误:
ToggleButton
。我遇到了一些错误(见下文)。我已经检查了Palette窗口中的所有其他组件,唯一无法加载的组件是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)。 - Kaushikcheckbox
而不是togglebutton
,但我真的想知道为什么togglebutton
不能工作。 - Pranit Bankar