Android Question [SOLVED] Firebase Storage Library Example - can't get it to run

Andris

Active Member
Licensed User
Longtime User
I'm trying to integrate Firebase Storage into my project. I've done everything at the Firebase Console end, and so the next step was to make the Firebase Storage Example work with my Firebase bucket. I've spent an entire day with it and can't keep it from crashing. The crash happens on the first line of Service_Create in the Starter, but it doesn't show up in the log even in Debug.
B4X:
Sub Service_Create
    auth.Initialize("auth")
    storage.Initialize("storage", bucket)
End Sub
I can't see what I could possibly be doing wrong, unless it's manifest related. Could someone give it a quick look? Thanks.
 

Attachments

  • FirebaseStorage_Crashes.zip
    22.7 KB · Views: 154

Andris

Active Member
Licensed User
Longtime User
There is none Erel. As soon as I open, it crashes with no error message, even with Bridge logging enabled.

If I unclick the FirebaseAuth library and comment out dependent lines, it at least loads. Could this indicate that Firebase is not set up right at the Console? In that process, I was concerned that I was never prompted to do download pepk.jar. Is this still something that's necessary, and could this be my problem?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
There is no message in the logs, whether filtered or unfiltered.
even not when the device is connected with USB-Debugging?
 
Upvote 0

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
Hi @Andris


It also happened to me yesterday that working with Firebase in the log file does not see anything, the solution was to download a new Android SDK and not update anything.

1587572750752.png
1587572769564.png


Here are the steps I did:

1. Create a folder on drive C called New Android SDK

2. Download the ZIP file Android SDK Command line tools here: https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip

3. Download ZIP file the required resources here: https://b4xfiles-4c17.kxcdn.com/b4a/resources.zip

4. Unzip both ZIP files in the same folder

5. Enter B4A and change the configuration path of the Android SDK

Try this solution it may work
 

Attachments

  • 1587572762815.png
    1587572762815.png
    18.1 KB · Views: 125
Last edited:
Upvote 0

Andris

Active Member
Licensed User
Longtime User
Hi @Andris


It also happened to me yesterday that working with Firebase in the log file does not see anything, the solution was to download a new Android SDK and not update anything.

View attachment 92392 View attachment 92394

Here are the steps I did:

1. Create a folder on drive C called New Android SDK

2. Download the ZIP file Android SDK Command line tools here: https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip

3. Download ZIP file the required resources here: https://b4xfiles-4c17.kxcdn.com/b4a/resources.zip

4. Unzip both ZIP files in the same folder

5. Enter B4A and change the configuration path of the Android SDK

Try this solution it may work
Well I'll be darned. I followed your instructions and no more crash! Thanks so much Bladimir. Any idea where the problem was?
 
Upvote 0

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
La verdad es que no soy un experto pero soy muy terco, solo sigo los pasos en los videos de @Erel y cuando veo que todo está bien y no funciona.

Eso me enoja y luego empiezo a pensar cosas como, por ejemplo, si alguna actualización daña algo. siempre me viene a la mente el SDK de Android
 
Upvote 0

Andris

Active Member
Licensed User
Longtime User
La verdad es que no soy un experto pero soy muy terco, solo sigo los pasos en los videos de @Erel y cuando veo que todo está bien y no funciona.

Eso me enoja y luego empiezo a pensar cosas como, por ejemplo, si alguna actualización daña algo. siempre me viene a la mente el SDK de Android
Lo mismo para mí ... ¡excepto que no tomé el paso de descargar un SDK nuevo! Gracias de nuevo.
 
Upvote 0
Top