0

I have added compile com.instabug.library:instabugsupport:1+ to dependency in build grade and synced with gradle files, added

Instabug.initialize(this, "your_app_token_here");

after setcontentview in my MainActivity.

However this is being underlined as an error.
What am I not doing or doing wrong?

Community
  • 1
  • 1
Chad Precilla
  • 37
  • 1
  • 9

1 Answers1

2

The initialize() method expects an Application object as a first parameter.

You can use this.getApplication() instead, if this is your first Activity, or just create a custom Application class and initialize the SDK in its onCreate()

Hassan Ibraheem
  • 2,329
  • 1
  • 17
  • 23