I have android app and this string in resources:
Select up to %1$d people!
Thi
Make a function and put your code inside it and add this @SuppressLint("StringFormatInvalid") just before the function. Hope it helps.
@SuppressLint("StringFormatInvalid")