Spanish Problemas con firebase Store...

oscarv

Member
Buenas tardes :
Estoy tratando de descargar un archivo de firebase store, pero no logro avanzar, ya lei los tutoriales a respecto y decargue algunos ejemplo, sin resultado positivo.
Según ya tengo bien dada de alta la app en firebase, pero siempre me arroja el siguiente error.

*** Service (starter) Create ***
starter_service_create (java line: 163)
android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.content.res.Resources.getText(Resources.java:354)
at android.content.res.Resources.getString(Resources.java:448)
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:82)
at b4a.example.starter._service_create(starter.java:163)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at b4a.example.starter.onCreate(starter.java:56)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3558)
at android.app.ActivityThread.-wrap4(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1812)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7000)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

Este es el starter

B4X:
#Region  Service Attributes
    #StartAtBoot: False
    #ExcludeFromLibrary: True
#End Region

Sub Process_Globals
    Public auth As FirebaseAuth
    Public storage As FirebaseStorage
    Private bucket As String = "gs://makoaapps.appspot.com"
End Sub

Sub Service_Create
    auth.Initialize("auth")
    storage.Initialize("storage", bucket)

End Sub

Private Sub Auth_SignedIn (User As FirebaseUser)
    Log($"Signed in: ${User}"$)
End Sub


Sub Service_Start (StartingIntent As Intent)

End Sub

Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub

Sub Service_Destroy

End Sub

y este el manifest

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)


'End of default text.

De antemano, Gracias
 

josejad

Expert
Licensed User
Longtime User
Hola Oscar:

No he usado nunca firebase storage, pero creo que este error es claro. Parece que tienes que identificar correctamente el recurso que quieres descargar, y no encuentra el ID del recurso que estás proporcionado, si es que lo estás haciendo (no veo ningún código en el que hagas la descarga, por eso siempre es bueno subir un proyecto)

NotFoundException: String resource ID
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…