Firebase error no debug.keystore in .android folder

大憨熊 提交于 2020-01-13 04:12:11

问题


I tried to connect Firebase to my android app but the error says

Firebase: Could not find keystore in file ({0}) specified for debug build type. {2}

I see that there is no debug.keystore in my .android folder.


回答1:


I've got the same issue, for fixing it, I've done the following step

  1. Go to your google firebase account
  2. Click on Project Settings
  3. Download the google-services.json file and save it in {your-project}/app/google-services.json
  4. The rebuild your project and it should work



回答2:


Open your project structure File -> Project structure

Than goto Signing, if you use default key clear all fill like this, or select debug and set up correct path to your keystore file (fill Store File). In Linux, by default, it is ~/.android/debug.keystore.

Also, goto Build Types, and select debug and you see this, if you cleaned fills in previouse step your Signing Config must be empty, else select debug

Hope it's help you.



来源:https://stackoverflow.com/questions/45143051/firebase-error-no-debug-keystore-in-android-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!