title: BUILD with Ant FAILED for Android on a Linux machine but succeeded on a Mac machine
body: <p>I am trying to build android project using ant from a linux machine. The project builds with no issues on my Mac machine but on the linux machine. Cannot seem to figure out why! </p>
  
  <p>I typed </p>
  
  <pre><code>ant release
  </code></pre>
  
  <p>Then I received the following message:</p>
  
  <pre><code> BUILD FAILED
  /android/android-sdk-linux/tools/ant/build.xml:885: The following error occurred while executing this line:
  /android/android-sdk-linux/tools/ant/build.xml:887: The following error occurred while executing this line:
  /android/android-sdk-linux/tools/ant/build.xml:899: The following error occurred while executing this line:
  /android/android-sdk-linux/tools/ant/build.xml:281: null returned: 137
  </code></pre>
  
  <p>and the lines in build.xml file are</p>
  
  <pre><code>275 &lt;dex executable="${dx}"
  276                    output="${intermediate.dex.file}"
  277                    dexedlibs="${out.dexed.absolute.dir}"
  278                    nolocals="@{nolocals}"
  279                    forceJumbo="${dex.force.jumbo}"
  280                    disableDexMerger="${dex.disable.merger}"
  281                    verbose="${verbose}"&gt;
        &lt;path path="${out.dex.input.absolute.dir}"/&gt;
        &lt;path refid="out.dex.jar.input.ref" /&gt;
        &lt;external-libs /&gt;
      &lt;/dex&gt;
  .
  .
  .
  .
  .
  
  884   &lt;target name="-dex" depends="-compile, -post-compile, -obfuscate"&gt;
  885      &lt;do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..."&gt;
  886      &lt;!-- only convert to dalvik bytecode is *not* a library --&gt;
  887      &lt;do-only-if-not-library elseText="Library project: do not convert bytecode..." &gt;
  888         &lt;!-- special case for instrumented builds: need to use no-locals and need
  889                 to pass in the emma jar. --&gt;
  890            &lt;if condition="${build.is.instrumented}"&gt;
  891                &lt;then&gt;
  892                    &lt;dex-helper nolocals="true"&gt;
  893                        &lt;external-libs&gt;
  894                            &lt;fileset file="${emma.dir}/emma_device.jar" /&gt;
  895                        &lt;/external-libs&gt;
  896                    &lt;/dex-helper&gt;
  897                &lt;/then&gt;
  898                &lt;else&gt;
  899                    &lt;dex-helper /&gt;
                  &lt;/else&gt;
              &lt;/if&gt;
          &lt;/do-only-if-not-library&gt;
      &lt;/do-only-if-manifest-hasCode&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I hope someone can help</p>