I get an error when using a gtkcenterbox in ui file

I am using gtk4 to build a gui for my app. When I use a gtkcenterbox widget in my ui definition file, the builder throws this error:

res/builder.ui:43:1 Invalid object type 'GtkCenterBox'

What language are you using? Are you positive you’re using GTK4? (not GTK3).

I was using gtk3 builder tool…prb now is solved.