Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Firebase Storage init error
Started by gumek0618 Jan 18 2018 03:25 AM

5 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gumek0618

[GLOBAL: userInfoPane.html]
gumek0618
  • Observer

  • 3 posts
  • Corona SDK

Hi,

I'm getting an error on firebaseStorage.init function in new Corona build (3204). This problem is not present in 3083 version. 

Build settings is set as described in the plugin.

local firebaseStorage = require "plugin.firebaseStorage"
timer.performWithDelay( 100, function()
    firebaseStorage.init("gs://#########.appspot.com")
end)
I/Corona  ( 7073): ERROR: Runtime error
I/Corona  ( 7073): C:\Users\JA\Documents\Corona Projects\Plansz├│wki\main.lua:15
: java.lang.IllegalAccessError: tried to access class com.google.android.gms.com
mon.internal.zzac from class com.google.firebase.storage.FirebaseStorage
I/Corona  ( 7073): Java Stack Trace:
I/Corona  ( 7073):      com.google.firebase.storage.FirebaseStorage.getInstance(
Unknown Source)
I/Corona  ( 7073):      plugin.firebaseStorage.LuaLoader$init.invoke(LuaLoader.j
ava:142)
I/Corona  ( 7073):      com.ansca.corona.JavaToNativeShim.nativeResize(Native Me
thod)
I/Corona  ( 7073):      com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShi
m.java:381)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$Cor
onaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:382)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.
guardedRun(GLSurfaceView.java:1612)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.
run(GLSurfaceView.java:1378)
I/Corona  ( 7073): stack traceback:
I/Corona  ( 7073):      [C]: in function 'init'
I/Corona  ( 7073):      C:\Users\JA\Documents\Corona Projects\Plansz├│wki\main.l
ua:15: in function 'listener'
I/Corona  ( 7073):      /Users/jenkins/slaveroot/workspace/Templates/label/andro
id/subrepos/timer/
I/Corona  ( 7073): ERROR: Runtime error
I/Corona  ( 7073): C:\Users\JA\Documents\Corona Projects\Plansz├│wki\main.lua:15
: java.lang.IllegalAccessError: tried to access class com.google.android.gms.com
mon.internal.zzac from class com.google.firebase.storage.FirebaseStorage
I/Corona  ( 7073): Java Stack Trace:
I/Corona  ( 7073):      com.google.firebase.storage.FirebaseStorage.getInstance(
Unknown Source)
I/Corona  ( 7073):      plugin.firebaseStorage.LuaLoader$init.invoke(LuaLoader.j
ava:142)
I/Corona  ( 7073):      com.ansca.corona.JavaToNativeShim.nativeResize(Native Me
thod)
I/Corona  ( 7073):      com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShi
m.java:381)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$Cor
onaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:382)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.
guardedRun(GLSurfaceView.java:1612)
I/Corona  ( 7073):      com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.
run(GLSurfaceView.java:1378)
I/Corona  ( 7073): stack traceback:
I/Corona  ( 7073):      [C]: ?
I/Corona  ( 7073):      [C]: in function 'init'
I/Corona  ( 7073):      C:\Users\JA\Documents\Corona Projects\Plansz├│wki\main.l
ua:15: in function 'listener'
I/Corona  ( 7073):      /Users/jenkins/slaveroot/workspace/Templates/label/andro
id/subrepos/timer/timer.lua:210: in function 'method'
I/Corona  ( 7073):      /Users/jenkins/slaveroot/workspace/Templates/label/andro
id/platform/resources/init.lua:221: in function </Users/jenkins/slaveroot/worksp
ace/Templates/label/android/platform/resources/init.lua:190>
V/Corona  ( 7073): > Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona  ( 7073): < Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona  ( 7073): Loading via reflection: CoronaProvider.licensing.google.LuaLo
ader


[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,821 posts
  • Enterprise

This has been patched please try again in an hour.



[TOPIC: post.html]
#3

iPhoner

[GLOBAL: userInfoPane.html]
iPhoner
  • Observer

  • 17 posts
  • Corona SDK

I also got error firebassStorage plugin Corona build (3184).

Always happen in launch and it said below.

 

IlligalStateException:Dafault FirebaseApp is not initialized in this process com.mycompany.myapp.

Make sure to call Firebase App, initializeApp(Context)first.



[TOPIC: post.html]
#4

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,821 posts
  • Enterprise

I also got error firebassStorage plugin Corona build (3184).

Always happen in launch and it said below.

 

IlligalStateException:Dafault FirebaseApp is not initialized in this process com.mycompany.myapp.

Make sure to call Firebase App, initializeApp(Context)first.

Hello, please don't post the same issue in two threads. If you believe there is a bug please file it here

https://docs.google.com/forms/d/e/1FAIpQLSf-V3z-V3FZ5y9Sb19cxVfjx7fSRV9HIbpAGptN7DaY3Ki_DA/viewform



[TOPIC: post.html]
#5

yourxlnc

[GLOBAL: userInfoPane.html]
yourxlnc
  • Observer

  • 15 posts
  • Corona SDK

Hi, I am getting this error. @scott please help. Version 2018.3428 (2018.11.6)

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbp;
                    LDN-L21: Java Stack Trace:
                    LDN-L21: 	com.google.firebase.storage.FirebaseStorage.getInstance(Unknown Source:10)
                    LDN-L21: 	plugin.firebaseStorage.LuaLoader$init.invoke(LuaLoader.java:142)
                    LDN-L21: 	com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
                    LDN-L21: 	com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:195)
                    LDN-L21: 	com.ansca.corona.Controller.updateRuntimeState(Controller.java:357)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:425)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)
                    LDN-L21: stack traceback:
                    LDN-L21: 	[C]: in function 'init'
                    LDN-L21: 	?: in function 'listener'
                    LDN-L21: 	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:212: in function 'method'
                    LDN-L21: 	/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/re
Jan 17 10:44:08.793 LDN-L21: ERROR: Runtime error
Jan 17 10:44:08.793 LDN-L21: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbp;
                    LDN-L21: Java Stack Trace:
                    LDN-L21: 	com.google.firebase.storage.FirebaseStorage.getInstance(Unknown Source:10)
                    LDN-L21: 	plugin.firebaseStorage.LuaLoader$init.invoke(LuaLoader.java:142)
                    LDN-L21: 	com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
                    LDN-L21: 	com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:195)
                    LDN-L21: 	com.ansca.corona.Controller.updateRuntimeState(Controller.java:357)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:425)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625)
                    LDN-L21: 	com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)
                    LDN-L21: stack traceback:
                    LDN-L21: 	[C]: ?
                    LDN-L21: 	[C]: in function 'init'
                    LDN-L21: 	?: in function 'listener'
                    LDN-L21: 	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:212: in function 'method'
                    LDN-L21: 	/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:190>


[TOPIC: post.html]
#6

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,821 posts
  • Enterprise

I patched this, please try rebuilding




[topic_controls]
[/topic_controls]