java.util.IllegalFormatConversionException: %f can't format java.lang.String arguments

Hot problem!
This exception has a lot of traffic. You can help 13 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by George B
, 1 year ago
via Appcelerator JIRA by Hieu Pham, 1 year ago
%f can't format java.lang.Integer arguments
via Appcelerator JIRA by Hieu Pham, 1 year ago
%f can't format java.lang.Integer arguments
via GitHub by agrass
, 7 months ago
via GitHub by RankoR
, 1 year ago
%d can't format java.lang.String arguments
via GitHub by Hirbod
, 2 years ago
%d can't format java.lang.String arguments
java.util.IllegalFormatConversionException: %f can't format java.lang.String arguments
at java.util.Formatter.badArgumentType(Formatter.java:1489)
at java.util.Formatter.transformFromFloat(Formatter.java:2038)
at java.util.Formatter.transform(Formatter.java:1465)
at java.util.Formatter.doFormat(Formatter.java:1081)
at java.util.Formatter.format(Formatter.java:1042)
at java.util.Formatter.format(Formatter.java:1011)
at java.lang.String.format(String.java:1554)
at com.georgeberdovskiy.fluidtherapy.MainActivity$1.onClick(MainActivity.java:82)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)

Users with the same issue

Once, 6 months ago
3 times, 1 year ago
128 times, 1 year ago
8 times, 1 year ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.