Android SDK can't fetch XML and ArrayIndexOutOfBounds Exception in Project Run
<p>I have two problems with android SDK.The first is that after installing sdk manager I can not install new plateform,tools,sysimage etc online it gives following error:</p>

<blockquote>
  <p>Fetching 
  Validate XML
  XML verification failed for .
  Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;>.
  Fetched Add-ons List successfully
  Fetching URL: 
  Validate XML: 
  XML verification failed for .
  Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;>.
  Fetching URL: 
  Validate XML: 
  Failed to fetch URL , reason: addon.xml
  Done loading packages.</p>
</blockquote>

<ul>
<li>I tried force https.</li>
<li>http in place of https.</li>
</ul>

<p>I am using DSL for internet and <em>not using any proxy to connect to internet</em>.
For the sake of removing this problem I also tried proxy server but all in vain.</p>

<p><strong>So I installed all the updates offline APD v2 helped me with downloading.</strong></p>

<p>I used both Eclipse and Netbeans for dev.Everything worked fine,until I tried to run a new project and even sample project.</p>

<p>On Eclipse it gave me following error:</p>

<p><img src="http://i.stack.imgur.com/I6pFp.jpg" alt="enter image description here"></p>

<p>Same problem was with netbeans:</p>

<blockquote>
  <p>Creating redLight-debug-unaligned.apk and signing it with a debug key...
  D:\Android\android-sdk\tools\ant\build.: The following error occurred while executing this line:
  D:\Android\android-sdk\tools\ant\build.: The following error occurred while executing this line:
  D:\Android\android-sdk\tools\ant\build.: 
  com.android.sdklib.build.ApkCreationException: java.lang.ArrayIndexOutOfBoundsException: 13</p>
</blockquote>

<p>I am new in android app development and trying to rebuild my Java Application for android platform,but I am stuck in first step.</p>

<p>Please help me here.</p>
