Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Getting Crashed On Opening Sometimes #5

Open
Piyu794 opened this issue Jun 30, 2020 · 0 comments
Open

App Getting Crashed On Opening Sometimes #5

Piyu794 opened this issue Jun 30, 2020 · 0 comments

Comments

@Piyu794
Copy link

Piyu794 commented Jun 30, 2020

Sometimes..when I am opening the app or installing it from Android Studio instead of opening automatically it is crashing with the below error :

com.myapp E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.myapp, PID: 22733
    java.lang.RuntimeException: Unable to start receiver com.foursquare.internal.receivers.AppUpdateReceiver: java.lang.IllegalStateException: Pilgrim SDK has not been initialized yet!Possible causes of this are:
    	- You used a `tools:remove` attribute in your AndroidManifest.xml to remove Pilgrim's ContentProvider (which is fine) and did not call the alternative initialization method PilgrimSdk.with().	- You used a `PilgrimSdk` method from a process other than your main process. This is not allowed.
    
    Frequently, the 2nd scenario will happen when using a library that adds a process to your app, like LeakCanary or ProcessPhoenix, if you forget to return early from your Application#onCreate.
    Please contact us if you are seeing this error and none of these scenarios apply to you.
        at android.app.ActivityThread.handleReceiver(ActivityThread.java:3388)
        at android.app.ActivityThread.access$1200(ActivityThread.java:199)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.IllegalStateException: Pilgrim SDK has not been initialized yet!Possible causes of this are:
    	- You used a `tools:remove` attribute in your AndroidManifest.xml to remove Pilgrim's ContentProvider (which is fine) and did not call the alternative initialization method PilgrimSdk.with().	- You used a `PilgrimSdk` method from a process other than your main process. This is not allowed.
    
    Frequently, the 2nd scenario will happen when using a library that adds a process to your app, like LeakCanary or ProcessPhoenix, if you forget to return early from your Application#onCreate.
    Please contact us if you are seeing this error and none of these scenarios apply to you.
        at com.foursquare.pilgrim.PilgrimSdk$Companion.get(SourceFile:1)
        at com.foursquare.internal.pilgrim.RealPilgrimErrorReporter.reportException(SourceFile:8)
        at com.foursquare.internal.receivers.AppUpdateReceiver.onIntentReceived$pilgrimsdk_library_release(SourceFile:9)
        at com.foursquare.internal.receivers.AppUpdateReceiver.onIntentReceived(SourceFile:1)
        at com.foursquare.internal.receivers.ProtectedBroadcastReceiver.onReceive(SourceFile:2)
        at android.app.ActivityThread.handleReceiver(ActivityThread.java:3379)
        	... 8 more

But I am initializing Pilgrim in Application Class's onCreate() with the help of Dagger & I am not using any such library which can use Pilgrim method from a process other than the main process..

Do I have to update Pilgrim to latest version? Right Now its 2.4.1

Can someone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant