kittoku/Minimum-VPN-Client-for-SoftEther-VPN

Unable to start service

Opened this issue · 0 comments

java.lang.RuntimeException: Unable to start service kittoku.mvc.service.SoftEtherVpnService@72fba3d with Intent { act=kittoku.mvc.connect cmp=kittoku.mvc/.service.SoftEtherVpnService }: java.lang.IllegalArgumentException: kittoku.mvc: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4881)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8296)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
Caused by: java.lang.IllegalArgumentException: kittoku.mvc: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:404)
at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:753)
at android.app.PendingIntent.getService(PendingIntent.java:715)
at kittoku.mvc.service.SoftEtherVpnService.beForegrounded(SoftEtherVpnService.kt:63)
at kittoku.mvc.service.SoftEtherVpnService.onStartCommand(SoftEtherVpnService.kt:28)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4863)
... 9 more