反应本机移动应用程序:超出最大调用堆栈大小错误

时间:2019-01-16 03:32:07

标签: android react-native react-native-android react-native-linking

我已经为android和ios创建了我的第一个react native应用,我目前只专注于Anroid。我还创建了一个具有某些功能的react native样本库。

将此lib集成到示例应用程序中,并尝试运行相同的库。 我收到错误消息

E/ReactNativeJS: Maximum call stack size exceeded.
I/ReactNativeJS: 'Failed to print error: ', 'You attempted to set the key `file` with the value `undefined` on an object that is meant to be immutable and has been frozen.'
E/ReactNativeJNI: Got JS Exception: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)
E/ReactNativeJNI: Got JS Stack: isValidArgument@http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353:67

正如我所解释的,这只是一个带有create命令的简单项目,我刚刚从npm导入了库,这是自动设置。

查看更多错误日志

unknown:ReactNative: Exception in native call from JS
com.facebook.react.devsupport.JSException: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:164)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
        at java.lang.Thread.run(Thread.java:764)
Caused by: com.facebook.jni.CppException: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)

在这一点上,谁能帮助我,我是本机移动应用程序开发的新手。我无法解决此问题。

请帮助,谢谢您。

0 个答案:

没有答案