Java Question Firebase manifest snippet causes application crash

Discussion in 'Libraries developers questions' started by Jookus, Apr 24, 2019.

  1. Jookus

    Jookus New Member Licensed User

    I am learning to make wrappers. My goal is to be able to modify and wrap Firebase text recognizer.

    I have started from super simple application. I created a simple java class that just takes two integers as input parameters and returns the calculated sum of those. I managed to wrap it and implement to my B4A project succesfully. The app works perfectly.

    Continuing with the same app my next step was to prepare it for Firebase integration. I added the following two snippets to my manifest as instructed here.

    CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
    CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase​

    I also added a line


    to my B4A code. I changed nothing else but added those three lines.
    Now my app crashes immediately when started with error

    java.lang.RuntimeException: Unable to get provider java.lang.ClassNotFoundException: Didn't find class "" on path: DexPathList[[zip file "/data/app/vatialaworks.b4a.wrapperone-_yunscyPG0UPnvgF8LM5eA==/base.apk"],nativeLibraryDirectories=[/data/app/vatialaworks.b4a.wrapperone-_yunscyPG0UPnvgF8LM5eA==/lib/x86_64, /system/lib64]]​

    I've tried to add various firebase related jars found from MVNRepository to Basic4android\Libraries and additional libraries folders but without success.

    What am I missing?
  2. DonManfred

    DonManfred Expert Licensed User

    Add FirebaseAuth to your app; it includes the Firebaseinitprovider.
    Erel likes this.
  3. Jookus

    Jookus New Member Licensed User

    Yes, that was the problem. Thank you DonManfred!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice