안녕하세요
안드로이드 10버전까지는 잘되는데 11버전에서
RemonCast aaaa = new RemonCast();
aaaa .create(“dddddd”, config); <-- 여기서 오류가 발생합니다.
아래는 오류메세지입니다.
2021-01-19 11:10:04.748 27935-27935/live.dooroonory E/AndroidRuntime: FATAL EXCEPTION: main
Process: live.dooroonory, PID: 27935
java.lang.SecurityException: getDataNetworkTypeForSubscriber
at android.os.Parcel.createExceptionOrNull(Parcel.java:2385)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getNetworkTypeForSubscriber(ITelephony.java:8762)
at android.telephony.TelephonyManager.getNetworkType(TelephonyManager.java:3706)
at android.telephony.TelephonyManager.getNetworkType(TelephonyManager.java:3670)
at com.remotemonster.sdk.RemonContext.getNetworkTypeForInit(RemonContext.java:197)
at com.remotemonster.sdk.data.InitMessage.(InitMessage.java:42)
at com.remotemonster.sdk.network.RestServiceHandler.init(RestServiceHandler.java:300)
at com.remotemonster.sdk.Remon.initPeerConnection(Remon.java:108)
at com.remotemonster.sdk.Remon.(Remon.java:55)
at com.remotemonster.sdk.RemonClient.initRemon(RemonClient.java:82)
at com.remotemonster.sdk.RemonCast.create(RemonCast.java:44)
at live.dooroonory.service.RemoteMonsterRootService.getRootCast(RemoteMonsterRootService.java:331)
at live.dooroonory.service.RemoteMonsterRootService.access$000(RemoteMonsterRootService.java:38)
at live.dooroonory.service.RemoteMonsterRootService$6.onSuccess(RemoteMonsterRootService.java:290)
at live.dooroonory.service.RemoteMonsterRootService$32.onResponse(RemoteMonsterRootService.java:681)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
at retrofit2.-$$Lambda$DefaultCallAdapterFactory$ExecutorCallbackCall$1$hVGjmafRi6VitDIrPNdoFizVAdk.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8424)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)