Android

java.lang.NullPointerException: null cannot be cast to non-null type android.view.ViewGroup

zerocool0713 2021. 8. 19. 11:29
반응형

 

java.lang.NullPointerException: null cannot be cast to non-null type android.view.ViewGroup

 

 

binding.xxxx as ViewGroup

 

->

 

binding.xxxx as ViewGroup?

 

nullable하게 변경해준다.

 

 

 

 

 

 

 

 

 

반응형