使用Firebase过程中出现的异常
来源:互联网 发布:光盘刻录大师for mac 编辑:程序博客网 时间:2024/05/01 13:52
一、Could not get unknown property 'compile' for object
编译器报下面的错误,请检查build.gradle并调整格式
Error:(30, 0) Could not get unknown property 'compile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
原因:studio添加代码的位置可能不对,或者改变了代码的格式,造成studio识别不了
解决方法:修改错误的代码格式,如上图compile的位置不对,需要调整
二、The Google Service Plugin cannot function without it
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
Error:Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
E:\MyApplication3\app\src\debug\google-services.json
E:\MyApplication3\app\google-services.json
原因:缺少google-services.json文件,该文件是在Firebase服务端创建项目后自动生成并下载的
解决办法:在服务端https://console.firebase.google.com/?pli=1注册登陆并创建工程,点击项目所需要的模块下,然后点击开始应用,按提示步骤执行,将中间生成的google-service.json文件拷贝到应用的根目录
参考资料:https://developers.google.com/identity/sign-in/android/start-integrating
- 使用Firebase过程中出现的异常
- Qt中简单使用Firebase
- StringReader使用过程中出现空指针异常
- J2EE开发过程中出现的异常解决
- git使用过程中出现的问题
- fastJson使用过程中出现的问题
- Handler使用过程中出现的问题
- Django 使用过程出现异常错误
- Java 线程使用中出现的异常IllegalMonitorStateException
- 项目中使用Shiro出现空指针异常的问题
- 使用Firebase的中国开发者,想对Firebase团队说些什么?(有奖调查)
- C++程序中如何规避子进程退出过程中出现的异常
- python-->django使用过程中碰到的异常总结
- 使用android studio过程中遇到的异常
- Glide使用过程中遇到timeout异常的处理方式
- 使用android studio混淆过程中遇到的异常
- 使用JSON出现的异常
- 使用preparedstatement出现的异常
- 在树莓派上通过usb_cam将图像传输到笔记本电脑
- BroadcastReceiver 中dialog的使用
- 还原数据库时报错
- 四种浏览器对 Document.body 的 ClientHeight、OffsetHeight 和 ScrollHeight 的解释
- 2.素数对猜想
- 使用Firebase过程中出现的异常
- c# wpf启动外部exe并嵌入到启动主窗口中运行
- JS之值类型与引用类型,及数据类型间的转换
- android webView 和js交互中需要注意的几点
- HTTP消息头中的“Cache-control”介绍
- mina 心跳机制
- C++通过mysql的c api和通过mysql的Connector C++ 1.1.3操作mysql的两种方式
- hive的统计函数
- dyld_shared_cache_extract_libs failed 5s真机测试问题