Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by calclavia
, 1 year ago
Tried to use permissions API while not attached to an Activity.
java.lang.IllegalStateException: Tried to use permissions API while not attached to an Activity.	at com.facebook.react.modules.permissions.PermissionsModule.getPermissionAwareActivity(PermissionsModule.java:123)	at com.facebook.react.modules.permissions.PermissionsModule.shouldShowRequestPermissionRationale(PermissionsModule.java:73)	at java.lang.reflect.Method.invoke(Native Method)	at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:322)	at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)	at android.os.Looper.loop(Looper.java:158)	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)	at java.lang.Thread.run(Thread.java:818)