Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issue in string array in xml file: Multiple substitutions specified in non-positional format and Found tag </item> where </string-array> is expected [duplicate]

Possible Duplicate:
Android XML Percent Symbol

hi mate i have an array in file xml:

<string-array name="type_data_graph">
        <item>Veichle speed (Km/h)</item>
        <item>Engine Rpm (rpm)</item>
        <item>Barometric pressure (kPa absolute)</item>
        <item>Fuel pressure (kPa)</item>
        <item>Fuel Rail pressure of manifold vacuum (kPa)</item>
        <item>Fuel Rail pressure diesel/gasoline (kPa)</item>
        <item>MAF air flow rate (grams/sec)</item>
        <item>Intake MAP (kPa)</item>
         <item>Engine % torque (%) </item>       
......
    </string-array>

when commpile i get error on

     <item>Engine % torque (%) </item>       

the error is

Description Resource Path Location Type error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? arrays.xml /DashboardDroid/res/values line 43 Android AAPT Problem

Description Resource Path Location Type error: Found tag where is expected arrays.xml /DashboardDroid/res/values line 43 Android AAPT Problem what means ??? i close all tag

like image 533
esoni Avatar asked Sep 26 '12 15:09

esoni


1 Answers

instead of

 Engine % torque (%)

try using

Engine %% torque (%%)

if you need a % in your strings.xml file

or try checking the link here

or else simply try giving

 formatted="false" 

in your

<string-array> 

tag

like image 128
G_S Avatar answered Oct 04 '22 22:10

G_S