Ros2 Basics in 5 days Humble(Python) Service Interface Problem

I created a services_quiz_sv for interfaces and when i first time colcon build it worked. When i tried again i get an error like this


If i tried to use allow-overriding i get an error like this.

I think because of this the quiz bot also cant colcon build it and even if my code works correctly i dont get the point how can i solve this.
But interface show command works correctly as shown below:
image

Hi, welcome to the community!

The first screenshot shows only a warning. Compilation can still succeed with warnings.

This can probably be solved by removing the build and install folders and compiling again:

cd ~/ros2_ws
rm -rf build/ install/
colcon build

Thank you removing build and install solved the problem