Error: found plural where item is expected

Zeokat

New Member
I am trying to run the Searchable Dictionary application from the Android developers' website. (get the source code following those instructions)But the file string.xml has an error at this part:\[code\]<plurals name="search_results"> <item quantity="one">%d result for \"%s\": </item> <item quantity="other">%d results for \"%s\": </item></plurals><!-- Search failure message. --><string name="no_results">No results found for \"%s\"</string>\[/code\]I have search, and found to fix it by replacing %s by %ss. Indeed it removed the error and would compile, but on the other hand the program doesn't work, when you search for a word that is in the dictionary (for instance in this case the first word of the dictionary is abbey) it doesn't find a result.I also tried to change the %s of the last line of code I cite, but then it says "no results found for "%s" " so it is not a good solution. I also tried to change %s and %d to %1$s and %2$d and it is still not working. Anybody knows what is the problem and how to solve it?
 
Back
Top