学习自定义广播的时候,就是接收不到,搜了一下,是Android 8.0的问题,看了这个博客就解决了。https://blog.csdn.net/kongqwesd12/article/details/78998151

具体解决办法: