https://www.amazon.com/Kitchen-Sticky-Ribbon-Catcher-Strips/dp/B08BC3QZ5K/

I used that brand for some weird moth like things in the basement. Worked well. Claims to work for fruit flies too and I see no reason why it wouldn't.

It takes a while (maybe a week or more). It's unsightly. But it works and doesn't stink.

I haven't purchased them on Amazon. I think I got them at Lowes or HD.

HTH a little. Good luck!

Cheers,
Scott.