Firebase数据库模拟器无法以java.lang.VerifyError开头

时间:2020-08-02 01:07:47

标签: firebase testing firebase-realtime-database firebase-tools

我尝试了以下

$ firebase emulators:start
i  emulators: Starting emulators: functions, database, hosting
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: firestore, pubsub
⚠  Your requested "node" version "nodejs10" doesn't match your global version "12"
⚠  database: Did not find a Realtime Database rules file specified in a firebase.json config file. The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration.
i  database: Database Emulator logging to database-debug.log
⚠  database: Fatal error occurred: 
   Database Emulator has exited with code: 1, 
   stopping all running emulators
i  hub: Stopping emulator hub
i  functions: Stopping Functions Emulator
i  database: Stopping Database Emulator
⚠  database: Error stopping Database Emulator```

看着database-debug.log,我看到了:

Exception in thread "main" java.lang.VerifyError: Uninitialized object exists on backward branch 209
Exception Details:
  Location:
    scala/collection/immutable/HashMap$HashTrieMap.split()Lscala/collection/immutable/Seq; @249: goto
  Reason:
    Error exists in the bytecode
  Bytecode:
[snipped]

我正在使用Mac OSX。有什么建议吗?

1 个答案:

答案 0 :(得分:0)

似乎我在Mac OSX上使用了不兼容的Java版本。使用java.com的Java运行时解决了这个问题。