with android extensions, reference a view in ac activity, then go to layout and change view type (for example, framelayout to linearlayout). View cache in activity isnt refreshed and at runtime, it throws a class cast exception. The workaround is to change view type and also change id, that way view cache is updated correctly