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(
相關文章
相關標籤/搜索