升级到Android Gradle插件3.3.0时,无效的Crashlytics API密钥错误 [英] Invalid Crashlytics API Key error when upgrading to Android Gradle Plugin 3.3.0

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

问题描述

从Android Gradle插件 3.2.0 升级到 3.3.0-alpha13 后,我看到了以下构建错误:

After upgrading from Android Gradle Plugin 3.2.0 to 3.3.0-alpha13, I'm seeing the following build error:

> Task :app:fabricGenerateResourcesDebug FAILED
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! 
Contact support@fabric.io for assistance.

看来 processDebugGoogleServices 任务为no在 fabricGenerateResourcesDebug 任务之前运行的时间更长。

It appears that the processDebugGoogleServices task is no longer running before the fabricGenerateResourcesDebug task.

我的版本为 4.1.0 的Google Services插件和 1.25.4 的Fabric插件。

I'm on version 4.1.0 of the Google Services plugin and 1.25.4 of the Fabric plugin.

推荐答案

这是已知的与 v4.1.0 插件和AGP 3.3 alpha版本的不兼容。解决方法是将 google-services 插件的 v4.0.2 降级。可以在此处找到更多讨论和详细信息: https://github.com/firebase/quickstart- android / pull / 661

This is a known incompatibility with the v4.1.0 plugin and AGP 3.3 alpha versions. The workaround is to downgrade to v4.0.2 of the google-services plugin. More discussion and details may be found here: https://github.com/firebase/quickstart-android/pull/661.

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

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