Reputation: 791
In my App I am using a TabLayout. The Tabs for the Layout are added programmatically. In 99% of the cases it works fine, but every now and then I get a Java.Lang.ClassCastException
while adding a tab. You cannot set a rule in which cases this occurs. It seems to be completely random.
Cleaning the solution and Rebuild helps every time, but I would still know, why this occurs and if there is any way to fix this bug.
Upvotes: 2
Views: 133