android.view.InflateException: can be used only with a valid ViewGroup root and attachToRo

android.view.InflateException: can be used only with a valid ViewGroup root and attachToRoot=true报错的原因:


在这里,我用merge包裹了整个项目出项上面的报错,是我对merge机制的不够了解,去掉merge改用liner才能够顺利运行

你可能感兴趣的:(android常见问题)