In my android XML Graphical Layout, it can not display my ToggleButton
. I get some errors (see below). I have checked all other components in the Palette window and the only component that fails to load is ToggleButton
. The problem is not project specific. It persists in every project I create.
Note: I have tried dragging it directly as well as using XML code to generate it. But it fails either way and the error is same.
Error :
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)
I have referred this question and tried to edit it but the edit was rejected. So please do not redirect me there.
I am using API 21. All the build tools are installed.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…