I have an IntentService that is using android.support.v4.os.ResultReceiver to pass data. In the IntentService, when I use ResultReceiver.send method to send the result back, Android Studio shows an error saying
ResultReceiver.send can only be called from same library group (groupId=com.android.support)
I get a similar message while calling the constructor of ResultReceiver. But the code runs even with this error. This started showing up after I upgraded support library version to 25.1.1.
What am I supposed to do to get around this?
There are two separate versions of ResultReceiver. The support one defined in android.support.v4.os package has this issue.
For a quick fix, use the standard ResultReceiver defined in android.os package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With