DemoX
Results
1
comments of
DemoX
没人解决吗 // 启动服务的地方 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { context.startForegroundService(new Intent(context, MyService.class)); } else { context.startService(new Intent(context, MyService.class)); } 麻烦作者改一下吧