Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unable to get provider com.google.firebase.provider.FirebaseInitProvider in Google play Console

Discussion in 'Android' started by godtyckligfysiker, Jul 10, 2022.

  1. godtyckligfysiker

    godtyckligfysiker

    Joined:
    Jun 28, 2022
    Posts:
    4
    I have a firebase application which runs perfectly in Unity simulator but when I upload i to the google play console I get the following error on devices with ABI arm64-v8a and armeabi-v7a. How is it that the app runs in Unity simulator but not in the google play console, and how can I fix it?

    .


    Code (CSharp):
    1. FATAL EXCEPTION: main
    2. Process: com.legends.week, PID: 9406
    3. java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account.
    4.    at android.app.ActivityThread.installProvider(ActivityThread.java:6575)
    5.    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6127)
    6.    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6037)
    7.    at android.app.ActivityThread.-wrap1(Unknown Source:0)
    8.    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
    9.    at android.os.Handler.dispatchMessage(Handler.java:105)
    10.    at android.os.Looper.loop(Looper.java:164)
    11.    at android.app.ActivityThread.main(ActivityThread.java:6938)
    12.    at java.lang.reflect.Method.invoke(Native Method)
    13.    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    14.    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
    15. Caused by: java.lang.IllegalStateException: The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account.
    16.     at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:136)
    17.     at com.google.firebase.crashlytics.FirebaseCrashlytics.init(FirebaseCrashlytics.java:149)
    18.     at com.google.firebase.crashlytics.CrashlyticsRegistrar.a(CrashlyticsRegistrar.java:57)
    19.     at com.google.firebase.crashlytics.CrashlyticsRegistrar.lambda$-2mRuIHCD6lMI4ZTVe2ciP7ereI(Unknown Source:0)
    20.     at com.google.firebase.crashlytics.-$$Lambda$CrashlyticsRegistrar$-2mRuIHCD6lMI4ZTVe2ciP7ereI.create(Unknown Source:2)
    21.     at com.google.firebase.components.ComponentRuntime.a(ComponentRuntime.java:132)
    22.     at com.google.firebase.components.ComponentRuntime.lambda$DNlBZ5M_Ps2O3yl2_ax3Y12wFUw(Unknown Source:0)
    23.     at com.google.firebase.components.-$$Lambda$ComponentRuntime$DNlBZ5M_Ps2O3yl2_ax3Y12wFUw.get(Unknown Source:4)
    24.     at com.google.firebase.components.Lazy.get(Lazy.java:53)
    25.     at com.google.firebase.components.ComponentRuntime.a(ComponentRuntime.java:291)
    26.     at com.google.firebase.components.ComponentRuntime.a(ComponentRuntime.java:281)
    27.     at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:594)
    28.     at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:305)
    29.     at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:269)
    30.     at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:254)
    31.     at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    32.     at android.content.ContentProvider.attachInfo(ContentProvider.java:1925)
    33.     at android.content.ContentProvider.attachInfo(ContentProvider.java:1900)
    34.     at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    35.     at android.app.ActivityThread.installProvider(ActivityThread.java:6572)
    36.     ... 10 more
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,853
    Running on Unity Simulator doesn't guarantee the exact functionality as the libraries needs real device.
    Did you try on local real device? If not, give a try locally first and see if it throws the same error.

    From the log it looks like you don't have the libraries resolved. Share a screenshot of Assets/Plugins/Android folder to have a look.
     
  3. godtyckligfysiker

    godtyckligfysiker

    Joined:
    Jun 28, 2022
    Posts:
    4
    upload_2022-7-11_22-42-36.png Hi Here's a screenshot over the Android folder. Does it look okay?
     
  4. godtyckligfysiker

    godtyckligfysiker

    Joined:
    Jun 28, 2022
    Posts:
    4
     
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,853
    Looks fine. Share an empty apk (no need of using any keystores, just debug keystore is fine) or merged manifest of your apk.
     
  6. godtyckligfysiker

    godtyckligfysiker

    Joined:
    Jun 28, 2022
    Posts:
    4
    Thanks for the help. I created an entirely new unity project and set up firebase from scratch and now it seems to work.