Class 'MyApplication' is never used

Neo  picture Neo · Feb 28, 2017 · Viewed 7.6k times · Source

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

Answer

Marcin Orlowski picture Marcin Orlowski · Feb 28, 2017

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

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