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

android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true報錯的原因:


在這裏,我用merge包裹了整個項目出項上面的報錯,是我對merge機制的不夠了解,去掉merge改用liner才能夠順利運行

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章