💡 How to get SHA-1

Create keystore in Unity

Windows > Run

Link to your

Link to your keystore file

Enter Keystore password

⚠️Unity Console (Build failed): The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8.....

💡 Go to Project Settings, enable:

  • Custom Main Gradle Template

  • Custom Launcher Gradle Template

  • Custom Gradle Properties Template

Open launcherTemplate.gradle and add the following lines:


multiDexEnabled true

Import Google SDK

After import Google related packages, go to Assets > External Dependency Manager > Android Resolver > Force resolve


⚠️ Unity Console: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your GetInstance() call.

✔️ After you enable Realtime Database in your Firebase Console, go to Project settings > download and reimport google-services.json and/or GoogleService-Info.plist