question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Unity 2021.2 "Internal build system error. Backend exited with code" error after import Firebase SDK 8.8.0

See original GitHub issue

[REQUIRED] Please fill in the following fields:

  • Unity editor version: Unity 2021.2.9f1
  • Firebase Unity SDK version: 8.8.0
  • Source you installed the SDK: Unity Package Manager by point to the path where tar file is. (tar file and how to install SDK with tar file is follow the guide here: https://developers.google.com/unity/instructions#install-tgz)
  • Problematic Firebase Component: com.google.firebase.app (Auth, Database, etc.)
  • Other Firebase Components in use: Auth, Database, Storage, messaging, remote-config, crashlytics, analytics (Auth, Database, etc.)
  • Additional SDKs you are using: External dependency manager (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: MacBook Pro with M1 chip and OS version is 12.3 Beta (The OS version may not a reason due to the same issue occur on macOS 12.2)
  • Platform you are targeting: Android/iOS (iOS, Android, and/or desktop)
  • Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Once I import the Firebase SDK the Unity Editor show the message likes “Internal build system error. Backend exited with code”, “Backend produced unparsable log entry” and then the compile backend of Unity Editor is totally crash so I cannot compile my game script after the script is modified.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? What’s the issue repro rate? (eg 100%, 1/5 etc)

  1. Create empty Unity project and import Firebase SDK by tar file and EDM4U. (Basically I just import “com.google.firebase.app” package and issue comes)
  2. Create a new .cs script and do some modify on the script.
  3. Issue reproduce.
  4. 100% reproduce.
  5. Reproduced on Unity 2021.2.9, 2021.2.10

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you’re reporting, you will likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
AlmostMattcommented, May 4, 2022

Based on my testing so far, this issue does not occur when using the just-released version 8.10.0 of the Firebase Unity SDK I was able to just add the relevant 8.10.0 packages to a project that had been failing, restarted Unity, and then builds succeeded.

I’ll continue to look into why the issue occurs in 8.9.0, but in the meantime using 8.10.0 is a possible workaround

1reaction
korobercommented, Apr 22, 2022

Unity 2021.3 (Intel version) + Firebase 8.9.0 same issue (backend exited with code 2) Fixed with the workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal build system error. Backend exited with code 2. - ...
If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc....
Read more >
[Firebase] An internal build system error "Backend exited with ...
[Firebase] An internal build system error "Backend exited with code 2" is thrown when importing or removing or creating a script.
Read more >
Firebase Unity SDK Release Notes
(Android) Fixed an issue where VerifyPhoneNumber's internal builder failed to create PhoneAuthOptions with certain compiler settings. (iOS) Fixed an issue where ...
Read more >
how to solve the issue “Internal build system error. ...
Backend exited with code 2.” With this error we are not able to play the game in unity editor.
Read more >
download as TXT
AM26 apache-directory-studio-2.0.0-M17 apache-felix-7.0.1 apache-felix-remoteshell-bundle-1.1.2 apache-flex-sdk-4.16.1 apache-httpd-2.4.57 apache-jena-4.9.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found