Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service

Android 8.0 经过startService开启服务引发crash问题 解决方法:web Intent intent = new Intent(this, ForegroundService.class); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForegroundService(
相关文章
相关标签/搜索