KunalK KunalK - 2 months ago 10
Android Question

Crashlytics could not be initialized, API key missing from AndroidManifest.xml

i found the problem regarding Crashlytics. i've successfully integrated the crashlytics in eclipse. and configured my sample android app with api key in

AndroidManifest.xml
file with
meta-data
tag. and
Crashlytics.start(this)
in my activity class. but when i try to run it, it gives me error that
Crashlytics could not be initialized, API key missing from AndroidManifest.xml. when the entry is already there in menifest file. following is the error log.

error_image

please help me.

Answer

Marc from Crashlytics here. Below is a sample AndroidManifest.xml - that should help you out. Also, we're happy to help through support at crashlytics dot com.

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
              package="com.example.myapp"
              android:versionCode="1"
              android:versionName="1.0">

        <uses-permission android:name="android.permission.INTERNET"/>

        <application android:label="@string/app_name">
                <activity android:name="MyActivity"
                          android:label="@string/app_name">
            </activity>

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