Killing app (pid 1724) because provider is in dying process

前端 未结 5 705
南方客
南方客 2021-02-03 11:58

A Provider is implemented in application and application updates provider data and triggers a remote service which queries the provider to retrieve the stored values.The appli

5条回答
  •  一向
    一向 (楼主)
    2021-02-03 12:31

    Hmm, hard luck, no answers so far. I figured out what has caused the crash last week! I guess i should share that here.

    Provider P is defined in application A which has a service S1 that disables the package and kills the package for some reason. Now there is another application B that has service S2 and uses the provider P. At some point service S1 disables some components of application A package and kills the process, that makes provider to find all the processes that are connected to it and kills those one by one, this makes the process in which application B is running to die with error "Killing app because provider is in dying process.

    Moving the provider to a new application solved the issue so that it runs in its own process solved the issue.

提交回复
热议问题