Note that there are some explanatory texts on larger screens.

plurals
  1. POeclipse android programming Error in an XML file: aborting build
    primarykey
    data
    text
    <p>i am creating an android application, a simple calculator, but i am getting an "[2012-03-12 20:22:21 - Calculator] Error in an XML file: aborting build." which i couldn't solve. could you identify the problem?</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;EditText android:id="@+id/txtResult" android:layout_width="fill_parent" android:layout_height="54dp" android:inputType="number" android:singleLine="true" android:text="@string/result" android:editable="false" android:gravity="right"&gt; &lt;/EditText&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.25" android:text="@string/number1" /&gt; &lt;Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.25" android:text="@string/number2" /&gt; &lt;Button android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number3" android:layout_weight="1.25" /&gt; &lt;Button android:id="@+id/buttonPlus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.25" android:text="@string/calcAddition" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout4" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/button4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number4" android:layout_weight="1.25" /&gt; &lt;Button android:id="@+id/button5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number5" android:layout_weight="1.25"/&gt; &lt;Button android:id="@+id/button6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number6" android:layout_weight="1.25"/&gt; &lt;Button android:id="@+id/buttonMinus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.25" android:text="@string/calcMinus" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout5" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/button7" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number7" android:layout_weight="1.25" /&gt; &lt;Button android:id="@+id/button8" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number8" android:layout_weight="1.25"/&gt; &lt;Button android:id="@+id/button9" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/number9" android:layout_weight="1.25"/&gt; &lt;Button android:id="@+id/buttonMultiplication" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.25" android:text="@string/calcMultiplication" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout6" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/button0" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.02" android:text="@string/number0" /&gt; &lt;Button android:id="@+id/buttonCLR" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.67" android:text="@string/calcCLR" /&gt; &lt;Button android:id="@+id/btnCalcEqual" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/calcEqual" /&gt; &lt;Button android:id="@+id/buttonDivision" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.1" android:text="@string/calcDiv" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>strings.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;string name="app_name"&gt;Calculator&lt;/string&gt; &lt;string name="number1"&gt;1&lt;/string&gt; &lt;string name="number2"&gt;2&lt;/string&gt; &lt;string name="number3"&gt;3&lt;/string&gt; &lt;string name="number4"&gt;4&lt;/string&gt; &lt;string name="number5"&gt;5&lt;/string&gt; &lt;string name="number6"&gt;6&lt;/string&gt; &lt;string name="number7"&gt;7&lt;/string&gt; &lt;string name="number8"&gt;8&lt;/string&gt; &lt;string name="number9"&gt;9&lt;/string&gt; &lt;string name="number0"&gt;0&lt;/string&gt; &lt;string name="calcCLR"&gt;CLR&lt;/string&gt; &lt;string name="calcDiv"&gt;/&lt;/string&gt; &lt;string name="calcMultiplication"&gt;*&lt;/string&gt; &lt;string name="calcAddition"&gt;+&lt;/string&gt; &lt;string name="calcMinus"&gt;-&lt;/string&gt; &lt;string name="result"&gt;0&lt;/string&gt; &lt;string name="calcEqual"&gt;Calculate&lt;/string&gt; &lt;/resources&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload