安装 firebase 动态链接插件后,任务 ':app:processDebugGoogleServices' 的 Ionic 3 执行失败
Ionic 3 Execution failed for task ':app:processDebugGoogleServices' after installing firebase dynamic links plugin
失败:构建失败,出现异常。
- 出了什么问题:
任务“:app:processDebugGoogleServices”执行失败。
File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnull/debug/google-services.json
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/debug/nullnull/google-services.json
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnull/google-services.json
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/debug/google-services.json
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnullDebug/google-services.json
/home/yushin/Desktop/TopStreetZambia/platforms/android/app/google-services.json
这只需要将 google-service.json 文件添加到 app/src/debug 和 app/src/release 文件夹
失败:构建失败,出现异常。
- 出了什么问题:
任务“:app:processDebugGoogleServices”执行失败。
File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: /home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnull/debug/google-services.json /home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/debug/nullnull/google-services.json /home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnull/google-services.json /home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/debug/google-services.json /home/yushin/Desktop/TopStreetZambia/platforms/android/app/src/nullnullDebug/google-services.json /home/yushin/Desktop/TopStreetZambia/platforms/android/app/google-services.json
这只需要将 google-service.json 文件添加到 app/src/debug 和 app/src/release 文件夹