Fruit flies are common all over the world. Of course, you will need to learn how to deal with them so you can get rid of them.
One of the best ways is actually to leave your unfinished wine glass (with wine) where the fruit flies are. I find this method the most effective but my girlfriend told me that the fruit flies will suffer while “drowning” in the wine. Which is true and perhaps inhumane so I stopped doing that.
Another way to make an easy fruit fly trap is to leave an unfinished beer can (with some beer) where the fruit flies are. Again, this method will “drown” the fruit flies although you can’t see them drowning since beer cans are not see through.
Of course, there’s also this fruit fly trap you can make over at instructables.
No matter what, any fruit fly trap will cause at least some kind of pain while the fruit flies die. Perhaps this is going very far but “life” is considered important in buddhism. I am not a buddhist but I have started killing less insects. I used to kill a whole lotta spiders, but now I grab them in plastic bags and let them free outside, something my girlfriend taught me. Before, I wouldn’t think twice before killing an insect. Now, I think twice because if the insect isn’t really harming you in any way, certainly there’s no reason to kill it. But yes, I will still kill Black Widow spiders on sight, I have no regrets about them and surely God will understand.
Remember, think of it in the insects’ shoes. What if you were an insect, you didn’t harm any humans but they squatted you simply because you were annoying?
Something to think about in life, just my 2 cents.