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

ummer akbar :

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.

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

Mir Suhail :

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=103993&siteId=1