crashlytics android studio gradle build failed

最后都变了- 提交于 2019-12-02 23:12:43

I just had the exact same issue after replacing the API Key in the AndroidManifest.xml file by a string reference instead of a literal string.
Using the literal string, the error disappeared.

Use

<meta-data
        android:name="com.crashlytics.ApiKey"
        android:value="mykey" />

Don't use

<meta-data
        android:name="com.crashlytics.ApiKey"
        android:value="@string/crashlytics_api_key" />

I have solved the issue. I had long conversation with crashlytics team, but they didn't helped me.

My solution is to create separate project, and install crashlytics on that project. It will generate api key on that project. I just copied that key and pasted to my original project and it worked. Have no idea why it didn't generated the key on my initial project.

yes,I add this code in AndroidManifest.xml,it worked

    <meta-data
        android:name="io.fabric.ApiKey"
        android:value="yourapikey" />

On first run of app without internet connection, app can not send information to server, so register your app in server.

Developer

This error due to wrong crashlaytics AppKey. Please check your manifest file for confirm it. OR

It is due to use of a string resource instead of Hardcoded AppKey in manifest file.

Use this:

<meta-data
android:name="io.fabric.ApiKey"
android:value="FABRIC_KEY"/>

Dont Use this

<meta-data
android:name="io.fabric.ApiKey"
android:value="@stringFABRIC_KEY"/>

All the best

Open fabric.properties and check if value against apiKey reads YOUR_API_KEY. If yes then copy your API Key from AndroidManifest.xml and paste it against apiKey in the fabric.properties.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!