Crashlytics 发现无效的 API 密钥 - AndroidStudio 构建 [英] Crashlytics found an invalid API key - AndroidStudio build
问题描述
我看到了所有其他问题,但没有一个被接受的答案对我有用.
I saw all other questions, but none of accepted answers is working for me.
按照此处找到的集成步骤https://dev.twitter.com/twitter-kit/android/integrate 我在模块根目录中创建了 crashlytics.properties 文件.文件中填充了在我新创建的 twitter 应用程序中找到的 apiKey 和 apiSecret 值.
By following integration steps found here https://dev.twitter.com/twitter-kit/android/integrate I have created crashlytics.properties file in module root. File is filled with apiKey and apiSecret values found in my newly created twitter application.
项目构建时发生错误.我使用的是 AndroidStudio 1.0
Error occurr on project build. I am using AndroidStudio 1.0
这是我的错误:
ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: REAL_APIKEY_VALUE.
Check the Crashlytics plugin to make sure that the application has been added successfully!
Contact support@fabric.io for assistance.
推荐答案
在fabric.properties 上添加这个效果很好,如下所示:
Works fine added this on fabric.properties like this:
# Fabric properties file: app/fabric.properties
apiSecret=xx68f6074dxxxxxc11dxxx97c172e8ebf0
apiKey=xxxe76c4xxxx97e8cxxxx0135e9d46f5a2xxx
添加 .gitignore(用于开源项目)
Add on .gitignore (for open source projects)
REMOVE AndroidManifest.xml 上的条目:
REMOVE entry on AndroidManifest.xml:
<meta-data
android:name="io.fabric.ApiKey"
android:value="xxx6c41xxx6ec601xxxd4xxxa2" />
官方文档:https://docs.fabric.io/android/fabric/settings/working-in-teams.html
这篇关于Crashlytics 发现无效的 API 密钥 - AndroidStudio 构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!