Closed konokol closed 6 years ago
The same problem occurs to me, how you solve the multi-process?
@CKJOKER It seems that the author has no intent to support multi-process. I use chuck with source code instead of aar from maven, and I change some code. The value of ChuckContentProvider.TRANSACTION_URI is assigned with my package name when declared. So whether ContentProvider.attachInfo(Context, ProviderInfo) is called or not doesn't matter.
Chuck works perfect with single-process. But when coming to multi-process, it crashes.
The cause is
ChuckContentProvider.TRANSACTION_URI
. In another process,Conprovider.attachInfo(Context, ProviderInfo)
seems to be not called, thusChuckContentProvider.TRANSACTION_URI
gets null. If we make a request in another process, NullPointerException occurs while saving data into database.