android XML视图不在Eclipse中显示ToggleButton

在我的Android XML图形布局中,我无法显示我的ToggleButton 。 我收到一些错误(见下文)。 此外,我无法使用图形布局编辑任何其他内容。

    

错误:

 Exception raised during rendering: -1 Exception details are logged in Window > Show View > Error LogThe 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) 

转到您的图形布局并找到API级别的下拉菜单,可能您使用的是最后一个21,并且您没有安装它,根据您的应用程序更改为其他控制杆。

在此处输入图像描述

我想你还没有安装正确的android软件包。 确保您的API设置为正确的(如不在Android中)。 只需单击您的SDK管理器并安装正确的API。 包括所有额外内容。 干杯!