Class Cast Exception In Android?
Hi i am getting class cast exceptrion in this line wheel = (WheelView) findViewById(R.id.wheel);
Solution 1:
You have declared a layout object of type com.WheelView
. However you are trying to cast it to a different class, com.skynextech.firstdentalcare.WheelView
. That's the problem. I assume that com.WheelView
is a typo, and the mistake.
Solution 2:
Also, close the WheelView tag in the xml before closing the LinearLayout!
Post a Comment for "Class Cast Exception In Android?"