Comments (4)
Can you please tell me how you solved this problem? I'm stuck
from videouikit-reactnative.
Does this warning make the app unusable? Can you try dismissing it to see if everything else works?
from videouikit-reactnative.
@EkaanshArora App just crashes, here's my log:
WARN `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
WARN `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
ERROR Your app just crashed. See the error below.
java.lang.RuntimeException: Unable to resume activity {com.petinder/com.petinder.MainActivity}: java.lang.reflect.InvocationTargetException
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4961)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4994)
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loopOnce(Looper.java:205)
android.os.Looper.loop(Looper.java:294)
android.app.ActivityThread.main(ActivityThread.java:8176)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by java.lang.reflect.InvocationTargetException
java.lang.reflect.Method.invoke(Native Method)
expo.modules.ReactActivityDelegateWrapper.invokeDelegateMethod(ReactActivityDelegateWrapper.kt:285)
expo.modules.ReactActivityDelegateWrapper.onResume(ReactActivityDelegateWrapper.kt:163)
com.facebook.react.ReactActivity.onResume(ReactActivity.java:58)
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1603)
android.app.Activity.performResume(Activity.java:8743)
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4951)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4994)
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loopOnce(Looper.java:205)
android.os.Looper.loop(Looper.java:294)
android.app.ActivityThread.main(ActivityThread.java:8176)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference
com.facebook.react.modules.permissions.PermissionsModule.onRequestPermissionsResult(PermissionsModule.java:201)
com.facebook.react.ReactActivityDelegate$2.invoke(ReactActivityDelegate.java:201)
com.facebook.react.ReactActivityDelegate.onResume(ReactActivityDelegate.java:126)
java.lang.reflect.Method.invoke(Native Method)
expo.modules.ReactActivityDelegateWrapper.invokeDelegateMethod(ReactActivityDelegateWrapper.kt:285)
expo.modules.ReactActivityDelegateWrapper.onResume(ReactActivityDelegateWrapper.kt:163)
com.facebook.react.ReactActivity.onResume(ReactActivity.java:58)
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1603)
android.app.Activity.performResume(Activity.java:8743)
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4951)
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4994)
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loopOnce(Looper.java:205)
android.os.Looper.loop(Looper.java:294)
android.app.ActivityThread.main(ActivityThread.java:8176)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
from videouikit-reactnative.
i'm also stuck with this error i have applied code which is mention in docs with fresh project
Errors -> new NativeEventEmitter()
was called with a non-null argument without the required addListener
method.
new NativeEventEmitter()
was called with a non-null argument without the required removeListeners
method.
Installed Dependencies ->
"agora-react-native-rtm": "^1.5.1",
"agora-rn-uikit": "^5.0.1",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-agora": "^4.2.1",
import AgoraUIKit from 'agora-rn-uikit';
const App = () => {
const [videocall, setVideocall] = useState(true);
const connectionData = {
appId: '83083d0a42961ead****',
channel: 'test',
};
const rtcCallbacks = {
EndCall: () => setVideocall(false),
};
return videocall ? (
) : (
<Text onPress={() => setVideocall(true)}>Start Call
);
export default App;
from videouikit-reactnative.
Related Issues (20)
- Support for react-native-agora 4.0.0 HOT 1
- Crash when tearing down AgoraUIKit component HOT 3
- Min view container (own camera preview) UI Issue HOT 2
- Screen Share HOT 3
- Other users cannot Join video stream with token gotten from agora-web-services such as Render & Railway. Only displaying a video screen. HOT 1
- Receiver User immediate offline after Join HOT 2
- How to show audio only when call gets started? HOT 1
- Quick start example not working react-native 0.7 HOT 4
- Error when ending call HOT 1
- layout is not changing. HOT 1
- How to make a voice call using Agora.io in react native? HOT 2
- Import EndCall, MuteAudio, MuteVideo functions HOT 2
- Customizing style HOT 2
- unable to start rtm CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN HOT 7
- onUserJoined callback not working? HOT 1
- RtmToken is not used in RtmConfigure.tsx file in LoginV2 function
- 'connection-state-change' as React UI Kit HOT 1
- By using this package, I integrated the audio functionality. However, the voice is currently coming through the speaker. How can we enable the audio to use the earpiece instead?
- In multiple person video call we are getting black space in video frame & Live streaming issues HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videouikit-reactnative.