I know this question has been asked many times, but all the other threads didn\'t solve my issue at all, I can\'t see anything wrong with my code. Maybe I missed something h
I had the same problem. I solved it by copying the class content code text. Then I deleted the class and created the same class again by right clicking the package -> New -> Service -> Service(Intent)
Then I pasted the same code to the class and it works.