firebase-api-initialization-failure-java-lang-reflect-invocationtargetexception

firebase-api-initialization-failure-java-lang-reflect-invocationtargetexception



I registed app on firebase with package name com.####.film , it was working good.Then I have changed package name in app and in google-service.json file for testing purpose. New package name is com.####.film.test and it also worked good. Now I have changed package name back to original name com.####.film, but app does not launches and throws exception.


com.####.film


com.####.film.test


com.####.film


firebase-api-initialization-failure-java-lang-reflect-invocationtargetexception.



I have changed package name again with another name and its working fine. Even it works on all names except on my original package name com.####.film.
Please help me


com.####.film





May be you forgot to add your Package name in firebase developer console or json file.Post your complete error log.
– Shailesh
Sep 5 '18 at 6:22





No App is already live and with same package name, but now I am not able to run with this package name.
– ummer
Sep 5 '18 at 6:40





Here is error 09-05 11:46:51.826 14674-14674/com.recipe.filmrise E/FirebaseApp: Firebase API initialization failure. java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.google.firebase.FirebaseApp.zza(com.google.firebase:firebase-common@@16.0.1:752) at com.google.firebase.FirebaseApp.zze(com.google.firebase:firebase-common@@16.0.1:718) at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.1:329)
– ummer
Sep 5 '18 at 6:41





Update the question your dependencies. We can trace it from there
– olajide
Sep 5 '18 at 6:59





1 Answer
1



First check if firebase is setup correctly, like dependencies are correctly added, SHA1 key is added in firebase console. If this is all set right but you are still getting the same issue. then there is definitely something wrong with other SDK dependencies you have added in build.gradle. I was facing the same issue and after lot of debugging I couldn't get this resolved. Then I tried removing firebase dependencies entirely from project, built and ran, but strangely I was still getting black screen and app getting stuck. To my luck I could find that issue was actually lying with my facebook sdk version I had added which was causing the firebase issue. I updated the facebook sdk to latest version and issue got automatically solved. You can find more here:
App getting stuck with E/com.facebook.internal.AttributionIdentifiers





Thanks Mir Suhail
– ummer
Sep 7 '18 at 10:10



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế