java.lang.IllegalStateException

You must call initSharedInstance before calling getSharedInstance.


Solutions on the web6606

Solution icon of github
You must call initSharedInstance before calling getSharedInstance.

Solution icon of github
You must call initSharedInstance before calling getSharedInstance.

Solution icon of stackoverflow
You must call initSharedInstance before calling getSharedInstance.

Solution icon of web
You must successfuly call method initialize before calling this method.

Solution icon of coderanch
via Coderanch by Cathy Song, 1 year ago
You must successfuly call method initialize before calling this method.

Solution icon of github
You must call EasyTracker.getInstance().setContext(context) or startActivity(activity) before calling getTracker()

Solution icon of coderanch
via Coderanch by Bob Green, 8 months ago
Must call associate() before calling activate()

Solution icon of stackoverflow
via Stack Overflow by Achraf
, 1 year ago
Must call associate() before calling activate()

Solution icon of web
via liferay.com by Unknown author, 1 year ago
Must call associate() before calling activate()

Solution icon of stackoverflow
Must call associate() before calling activate()

Stack trace

  • java.lang.IllegalStateException: You must call initSharedInstance before calling getSharedInstance. at com.github.stkent.amplify.tracking.Amplify.getSharedInstance(Amplify.java:108) at com.github.stkent.amplify.prompt.BasePromptView.<init>(BasePromptView.java:116)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.