Fruitlessly has 2 different meanings across 1 category:
Adverb
in an unproductive manner
In a fruitless manner