当我使用“getSystemService”时,我遇到了这个错误The method getSystemService(String) is undefined for the type WebAppInterface我在接口类工作,而不是activity类。 // Get instance of Vibrator from current Context
Vibrator v = (Vi
我将该服务添加到清单中,但由于某些原因,我仍然收到此错误 java.lang.RuntimeException: Unable to instantiate service com.example.jobcodlabhomework.MainActivityfun createNotificationChannel() { this@MainActivity.getSystemServiceperformDownload()