This stacktrace occurs when we attempt to send a text message as a client. This means that the SendDataService cannot be invoked, which is inherently bad.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: edu.uwstout.p2pchat, PID: 27422
java.lang.RuntimeException: Unable to instantiate service edu.uwstout.p2pchat.WifiDirectHelpers.SendDataService: java.lang.IllegalAccessException: void edu.uwstout.p2pchat.WifiDirectHelpers.SendDataService.<init>() is not accessible from java.lang.Class<android.app.AppComponentFactory>
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3791)
at android.app.ActivityThread.access$1500(ActivityThread.java:248)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1846)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7266)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: java.lang.IllegalAccessException: void edu.uwstout.p2pchat.WifiDirectHelpers.SendDataService.<init>() is not accessible from java.lang.Class<android.app.AppComponentFactory>
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:103)
at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:66)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3786)
This stacktrace occurs when we attempt to send a text message as a client. This means that the SendDataService cannot be invoked, which is inherently bad.