Cannot get the NotificationListenerService class to work

前端 未结 9 1847
梦如初夏
梦如初夏 2020-12-03 01:35

I have a android application that is trying to use the new NotificationListenerService class from api 18. I have created my own service class that inherits from this class a

9条回答
  •  温柔的废话
    2020-12-03 02:19

    Sometimes deleting build and rebuilding source might be the issue.

    I Struggled with it for 3 days, and here is what I have done:

    AndroidManifest.xml

    Changes service name from just class example:

    
              
                  
              
          
    

    to

     
              
                  
              
          
    

    Navigate to your root directory > android , then delete build folder, allow your project to rebuild.

提交回复
热议问题