Fatal error: google/protobuf/port_def.inc: No such file or directory

I am completely new to softwares and drones.
I started working with px4 sitl in gazebo recently in ubuntu 18.04 with ros melodic.
I was trying out px4 avoidance( https://github.com/PX4/avoidance ), local planner in px4 sitl with gazebo.
After cloning and following the steps, by protobuf compiler got updated.
protoc --version
libprotoc 3.11.4
Earlier it was 3.0.0 .
Ever since then i am getting this error while make.
make px4_sitl gazebo
I tried to uninstall protobuf with
sudo apt-get remove protobuf-compiler
sudo apt-get autoremove
As i have removed them libgazebo9-dev, also got broken. The idea was if i install libgazebo9-dev once again i will get my working protobuf. But actually it didnt work, i got the same error back. I cant actually uninstall or downgrade my protobuf.
Any fix ?

I am facing the same problem…
Its kinda frustating now…

Any solutions yet??