The following classes could not be instantiated

AndroidStudio更新后,新建xml文件会发现布局无法正常预览,同时会在布局下面提示“The following classes could not be instantiated”等信息,通过查询资料都说要将style文件夹下主题从


改为


但仔细看了一下项目主题,都是使用的Theme.AppCompat.Light.NoActionBar,一筹莫展之际点击布局
The following classes could not be instantiated_第1张图片
xml居然正常预览了,特此记录一下!!

你可能感兴趣的:(Android,android-studio,android,xml)