<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl" -->

---
title: Firebase Compatibility with Unity 2020.1 and Later
description: Unity 2020.1's overhauled build system broke several Firebase SDK integrations, including AndroidX/Jetifier setup, google-services.json transmission, and...
canonical: https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Firebase Compatibility with Unity 2020.1 and Later | daily.dev
og:description: Unity 2020.1's overhauled build system broke several Firebase SDK integrations, including AndroidX/Jetifier setup, google-services.json transmission, and...
og:url: https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl
og:image: https://api.daily.dev/og/posts/Rfn5Qupvl.png
og:image:alt: Firebase Compatibility with Unity 2020.1 and Later
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Firebase Compatibility with Unity 2020.1 and Later

**[Firebase](https://daily.dev/sources/firebase-blog)** · 8 min read · 0 upvotes · 0 comments

## Summary

Unity 2020.1's overhauled build system broke several Firebase SDK integrations, including AndroidX/Jetifier setup, google-services.json transmission, and Crashlytics component generation. Firebase recommends staying on Unity 2019 for now, but for developers on 2020.1, the post walks through manual workarounds: generating mainTemplate.gradle and gradleTemplate.properties, manually wiring up google-services.xml as a resource, enabling AndroidX/Jetifier via gradleTemplate.properties, and adding the Crashlytics Gradle plugin to baseProjectTemplate.gradle and launcherTemplate.gradle. A proper fix is in progress.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2020/08/firebase-compatibility-with-unity-20201>

## Questions this post answers

### Why did Firebase stop working after upgrading to Unity 2020.1?

Unity 2020.1 overhauled its build system, breaking the custom tooling Firebase relied on since Unity 5. This invalidated the mechanism for integrating AndroidX and Jetifier and for transmitting google-services.json data into the final Android build, and it stopped generating components Crashlytics needs, which can cause a crash on launch.

_Developers hitting Unity build breakages after an engine upgrade can track fixes like this on daily.dev._

### How do I manually configure google-services.json for Firebase in Unity 2020.1?

Generate a custom mainTemplate.gradle and gradleTemplate.properties via Project Settings/Player/Publishing Settings, then add a sourceSets block to mainTemplate.gradle pointing res.srcDirs at Assets/Plugins/Android/Firebase/res/values/google-services.xml, and add android.useAndroidX=true and android.enableJetifier=true to gradleTemplate.properties.

_daily.dev helps developers wiring up Firebase build configs find workarounds like this quickly._

### How do I get Crashlytics working with Firebase on Unity's new build pipeline?

Generate baseProjectTemplate.gradle and launcherTemplate.gradle, then add classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0' inside allprojects.buildscript.dependencies in baseProjectTemplate.gradle, and apply plugin 'com.google.firebase.crashlytics' at the end of launcherTemplate.gradle since Crashlytics needs an Application, not just a Library module.

_Teams debugging Crashlytics setup on Unity can follow build-config fixes like this via daily.dev._

## Similar posts on daily.dev

- [Planned Breaking Changes In Unity 6.5](https://daily.dev/posts/planned-breaking-changes-in-unity-6-5-hu3ei0m7v) · 80 LEVEL · 0 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#unity](https://daily.dev/tags/unity), [#firebase](https://daily.dev/tags/firebase), [#gradle](https://daily.dev/tags/gradle)

[View this post on daily.dev](https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Firebase Compatibility with Unity 2020.1 and Later","url":"https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl"},"datePublished":"2026-08-23T12:19:52.023Z","dateModified":"2026-08-23T12:28:33.861Z","description":"Unity 2020.1's overhauled build system broke several Firebase SDK integrations, including AndroidX/Jetifier setup, google-services.json transmission, and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,unity,firebase,gradle","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Firebase Compatibility with Unity 2020.1 and Later"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/firebase-compatibility-with-unity-2020-1-and-later-rfn5qupvl#faq","mainEntity":[{"@type":"Question","name":"Why did Firebase stop working after upgrading to Unity 2020.1?","acceptedAnswer":{"@type":"Answer","text":"Unity 2020.1 overhauled its build system, breaking the custom tooling Firebase relied on since Unity 5. This invalidated the mechanism for integrating AndroidX and Jetifier and for transmitting google-services.json data into the final Android build, and it stopped generating components Crashlytics needs, which can cause a crash on launch. Developers hitting Unity build breakages after an engine upgrade can track fixes like this on daily.dev."}},{"@type":"Question","name":"How do I manually configure google-services.json for Firebase in Unity 2020.1?","acceptedAnswer":{"@type":"Answer","text":"Generate a custom mainTemplate.gradle and gradleTemplate.properties via Project Settings/Player/Publishing Settings, then add a sourceSets block to mainTemplate.gradle pointing res.srcDirs at Assets/Plugins/Android/Firebase/res/values/google-services.xml, and add android.useAndroidX=true and android.enableJetifier=true to gradleTemplate.properties. daily.dev helps developers wiring up Firebase build configs find workarounds like this quickly."}},{"@type":"Question","name":"How do I get Crashlytics working with Firebase on Unity's new build pipeline?","acceptedAnswer":{"@type":"Answer","text":"Generate baseProjectTemplate.gradle and launcherTemplate.gradle, then add classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0' inside allprojects.buildscript.dependencies in baseProjectTemplate.gradle, and apply plugin 'com.google.firebase.crashlytics' at the end of launcherTemplate.gradle since Crashlytics needs an Application, not just a Library module. Teams debugging Crashlytics setup on Unity can follow build-config fixes like this via daily.dev."}}]}
```

