%n doesn't take an argument

Solutions on the web1

Solution icon of stackoverflow
%n doesn't take an argument

Stack trace

  • java.util.IllegalFormatFlagsException: %n doesn't take an argument at java.util.Formatter$FormatToken.checkFlags( at java.util.Formatter.transform( at java.util.Formatter.doFormat( at java.util.Formatter.format( at java.util.Formatter.format( at java.lang.String.format( at android.content.res.Resources.getString(

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.