Why I am getting error Attempt to invoke virtual method 'void android.view.ViewGroup.removeView(android.view.View)' on a null object reference, while designing

Anybody khow why I am getting this error/warning while designing …

Attempt to invoke virtual method ‘void android.view.ViewGroup.removeView(android.view.View)’ on a null object reference

Please show us your Blocks and also if you are using any extension then please mention it too

Are you trying to remove any component or view ?

There’s option in View to remove view therefore may be extension developer want to remove the view of parent thats why I asked that

Do two things

  1. Delete all the procedure blocks from screen initialise but don’t remove setup spin wheel to check that is it creating the issue of yes then the problem is with extension and we have to focus on it
  2. Try removing only setup spin wheel and try execution and analyse the result

One more question
What is Search_View1 and Search_View2

Do you mean Scratch_View?

When the error is coming?
Which block do you suspect that is giving error?

Error is coming when Companion loads all components and Views.

Oh yes, Actually the blocks are blurred therfore it was looking like search view
BTW what’s it and

Have you tried it in apk after compiling

Scratch view giving me this error on companion.

show blocks what are you doing there and try do debug using Do it method