Format string XXX is not a valid format string so it should not be passed to String.format
<p>I have android app and this string in resources:</p>

<pre><code>&lt;string name="create_group_select_people"&gt;Select up to %1$d people!&lt;/string&gt;
</code></pre>

<p>This is called from fragment:</p>

<pre><code>Integer countMax = 5; //also tried just "int" - nothing changed
getResources().getString(R.string.create_group_select_people, countMax);
</code></pre>

<p>but I got error:</p>

<pre><code>Format string 'create_group_select_people' is not a valid format string so it should not be passed to String.format
</code></pre>

<p>I can't understand what is wrong? When I launch app - it shows me literally "Select up to %1$d people!"</p>