-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the app crashes #6
Comments
java.lang.Error: FATAL EXCEPTION [main] Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=200, result=-1, data=Intent { (has extras) }} to activity {ru.funreality.funreality/com.setik.kampertee.AndroidUtils}: java.lang.SecurityException: Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION |
Hi |
hi, I added your video recording to my project, but unfortunately the application just crashes when you click on the start recording button, it also gives an error log, I'm just starting to work in everything related to Unity, tell me what's wrong, here's the error log
07-14 16:38:43.081 8704 8759 E Unity : AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='hasPermission' signature='(Ljava/lang/String;)Z' in class Lcom.unity3d.player.UnityPlayerActivity;
07-14 16:38:43.081 8704 8759 E Unity : java.lang.NoSuchMethodError: no non-static method with name='hasPermission' signature='(Ljava/lang/String;)Z' in class Lcom.unity3d.player.UnityPlayerActivity;
07-14 16:38:43.081 8704 8759 E Unity : at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:162)
07-14 16:38:43.081 8704 8759 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
07-14 16:38:43.081 8704 8759 E Unity : at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
07-14 16:38:43.081 8704 8759 E Unity : at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
07-14 16:38:43.081 8704 8759 E Unity : at android.os.Handler.dispatchMessage(Handler.java:102)
07-14 16:38:43.081 8704 8759 E Unity : at android.os.Looper.loopOnce(Looper.java:210)
07-14 16:38:43.081 8704 8759 E Unity : at android.os.Looper.loop(Looper.java:299)
07-14 16:38:43.081 8704 8759 E Unity : at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
07-14 16:38:43.081 8704 8759 E Unity : at UnityEngine._AndroidJNIHelper.GetMethodID (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
07-14 16:38:43.081 8704 8759 E Unity : at
The text was updated successfully, but these errors were encountered: