Neo
Neo

Reputation: 159

Class 'MyApplication' is never used

After I successfully integrated flurry SDK into the library by using this code in my build.gradle file.

    compile 'com.flurry.android:analytics:6.8.0'

I created java Class to integrate my API Key into my code, and since Im running my app on an external device I suppose some data needs to show on my flurry account, but it is now four days and nothing changed, only zeros are showing on my dashboard ...

Also, i have this message on my java file

Class 'MyApplication' is never used

enter image description here

Ps: I'm new to android studio

Upvotes: 9

Views: 10259

Answers (2)

chaithu
chaithu

Reputation: 1

It's a class, not an activity. So you should write it as :

<application
    android:name=".MyApplication" //you should write like this
    android:allowBackup="true"
</application>

Upvotes: -2

Marcin Orlowski
Marcin Orlowski

Reputation: 75629

You must specify MyApplication in manifest file. It will not be used otherwise:

<application
    android:name=".MyApplication"
    ....

Upvotes: 4

Related Questions