Texting error(senddirectmessage)

how to fix the runtime error that requires that one FLAG_MUTABLE OR FLAG:IMMUTABLE be specified when creating a pendingIntent …

im trying to send message thru text message.
thanks