Firebase Crashlytics无效密钥错误 [英] Firebase Crashlytics Invalid Key Error

查看:81
本文介绍了Firebase Crashlytics无效密钥错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Firebase Crashlytics集成到我的Android游戏(使用Cocos2D-X引擎开发)中。

I want to integrate Firebase Crashlytics into my Android game (developed using Cocos2D-X engine).

我已按照此链接

我正在使用Android Studio构建项目时出现以下错误:

I'm getting following error when building the project using Android Studio:

ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: null. 
Check the Crashlytics plugin to make sure that the application has been added successfully! 

似乎我缺少一些API密钥。如何在Firebase中找到 Crashlytics API 键?如何在Android项目中提及该键?

It looks like that I am missing some API key. How can I find the Crashlytics API key in Firebase? How to mention that key in the Android project?

我希望您对此主题有任何建议和想法。谢谢。

I would appreciate any suggestions and thought on this topic. Thank you.

推荐答案

请注意以下几点,这应该可以解决您的问题:

Please note the following things, this should solve your issue:


  1. 检查Android Studio版本,建议版本为3.1.4。

  2. Classpath(项目级 build.gradle 文件不应具有任何Alpha或Beta版本,因为Firebase仅支持稳定版本

  1. Check Android Studio version, suggested version is 3.1.4.
  2. Classpath (project-level build.gradle file shouldn't have any alpha or beta versions. That is because Firebase only supports stable version of Android Studio.

也就是说,推荐的gradle版本设置为:

That said, the recommended setup of your gradle version is:

classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.1.0'

这篇关于Firebase Crashlytics无效密钥错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆