I make the object draggable in the application (the following developer guide for Android ), and it looks like this:
ClipData dragData = new ClipData(v.getTag(), ClipData.MIMETYPE_TEXT_PLAIN, item);
But the IDE gives the following error:
Cannot resolve symbol 'MIMETYPE_TEXT_PLAIN'
So my question is this: how can I get the IDE to recognize MIMETYPE_TEXT_PLAIN?
And yes, I tried (which it seems that this should be the right way) to change ClipData.MIMETYPE_TEXT_PLAINto ClipDescription.MIMETYPE_TEXT_PLAIN, but this seems to make everything worse, as you can see in the following screenshot:

source
share