Java.lang.nosuchmethoderror: Android.app.notification$builder.addaction
I have developed an android application where i have used notification to be displayed when the application starts The application works perfect when i run the code on android emul
Solution 1:
addAction()
was added to API Level 16; Android 4.0.4 runs API Level 15. Either switch to NotificationCompat.Builder
from the Android Support package, or only call addAction()
if Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN
.
Post a Comment for "Java.lang.nosuchmethoderror: Android.app.notification$builder.addaction"