I kept getting the following error while building -
ActivityRecognizer.java:203 - Error: incompatible types - inferred type does not conform to upper bound(s)
ArrayList<DetectedActivity> updatedActivities = intent.getParcelableArrayListExtra(DetectionService.ACTIVITY_EXTRA);
^
Inferred: DetectedActivity
Upper bound(s): Parcelable
Solution
I was able to fix this by changing line 203 to this -
Here is the version I'm using -
Issue
I kept getting the following error while building -
Solution
I was able to fix this by changing line
203
to this -Just wanted to report it here, so it helps someone.
🍻