我在将其与Firebase集成后尝试构建默认的颤动应用程序时出现此错误
我已将googleservices.json放在正确的位置.现在它说它正在那些不存在的位置进行搜索.喜欢
src\debug\nullnull\google- services.json
这个文件夹甚至不存在,我看了,它不存在.
Launching lib\main.dart on Phone in debug mode...
Configuration 'compile' in project ':app' is deprecated. Use
'implementation' instead.
registerResGeneratingTask is deprecated, use
registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use
registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot
function without it.
Searched Location:
C:\Users\rober\Documents\VS\APPNAME\android\app\src\nullnull\debug\google-
services.json
C:\Users\rober\Documents\VS\APPNAME\android\app\src\debug\nullnull\google-
services.json
C:\Users\rober\Documents\VS\APPNAME\android\app\src\nullnull\google-
services.json
C:\Users\rober\Documents\VS\APPNAME\android\app\src\debug\google-
services.json
C:\Users\rober\Documents\VS\APPNAME\android\app\src\nullnullDebug\google-
services.json
C:\Users\rober\Documents\VS\APPNAME\android\app\google-services.json
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
Gradle build failed: 1
Exited (sigterm)
解决方法:
你需要把它放在android / app下:
它也应该命名为google-services.json而没有破折号之后的空格.要重命名,请右键单击它,然后单击“重构”>“重命名”.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。