Firebase Cloud Functions仿真器会抛出“已退出代码:1".错误 [英] Firebase Cloud Functions emulator throws "exited with code: 1" error

查看:71
本文介绍了Firebase Cloud Functions仿真器会抛出“已退出代码:1".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置本地环境以测试Firebase云功能.我一直在与其文档接触,但是现在遇到了以下错误:

I'm trying to setup my local environment for testing firebase cloud functions. I've followed along with their documentation but now bump into the following error:

错误:firestore:仿真器已退出,代码为:1

Error: firestore: emulator has exited with code: 1

我发现了与此问题有关的其他SO线程,但没有包含我的特定日志:

I've found other SO threads regarding this issue but none with my specific logs:

i  Starting emulators: ["functions","firestore","hosting"]
⚠  Your requested "node" version "8" doesn't match your global version "12"
✔  functions: Emulator started at http://localhost:5001
i  firestore: Logging to firestore-debug.log
✔  firestore: Emulator started at http://localhost:8080

Error: firestore: emulator has exited with code: 1

firestore-debug.log文件并没有真正向我提示:

The firestore-debug.log file does not really hint me in a direction neither:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/cloud/datastore/emulator/firestore/CloudFirestore : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

这里的任何人都知道导致此错误的原因是什么

Anyone here an idea what's causing this bug?

推荐答案

只需从 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆