title: An internal error occurred during: "Android Library Update". java.lang.NullPointerException
body: <p>I have just installed the following setup for mobile development with Cocos2d and encountered the following error, almost every time I restarted Eclipse:
  "An internal error occurred during: "Android Library Update". java.lang.NullPointerException"
  Afterwards, nothing would work. </p>
  
  <p>I still haven't found what's the cause of this error (BUT, I have a workaround, see below), and also searched for it in the net and didn't find anything related to my environment, which is as follows:</p>
  
  <ol>
  <li>Win7 64bit</li>
  <li>adt-bundle-windows-x86_64-20140702 (Eclipse Juno)</li>
  <li>android-ndk-r9d-windows-x86_64</li>
  <li>jdk-8u25-windows-x64</li>
  </ol>
  
  <p>I am posting this since I have found a workaround to this annoying sh*tty error which I have wasted days on importing and creating new projects every time it appeared, most of the time after I closed and opened Eclipse.</p>
  
  <p>-------- Error Workaround -----------
  The error is on .cproject file located in proj.android directory. Seems like Eclipse or some plugin causes some malformation in this file.
  I did a diff between a good .cproject file and a bad one which causes this annoying error.
  Below are the lines that need to be removed from your .cproject file every time you encounter this error (and then restart Eclipse, all should be fine)</p>
  
  <p>I hope this would be fixed soon - my guess is it probably happens only on 64bit.. don't know why I didn't install the 32bit and saved all that lost time in the first place... :/ </p>
  
  <p>Hope this helps.
  Please feel free to add yor notes and thoughts, or even tell me if I did something wrong (or stupid..) since i'm kinda new with this ADT environment.</p>
  
  <pre><code>&lt;cconfiguration id="0.1230402123.1377291156"&gt;
          &lt;storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug"&gt;
              &lt;externalSettings/&gt;
              &lt;extensions&gt;
                  &lt;extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/&gt;
                  &lt;extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/&gt;
                  &lt;extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/&gt;
                  &lt;extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/&gt;
                  &lt;extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/&gt;
                  &lt;extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/&gt;
              &lt;/extensions&gt;
  </code></pre>
  
  <p>--- SOME MORE XML ---</p>
  
  <pre><code>&lt;autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/&gt;
      &lt;scannerConfigBuildInfo instanceId="0.1230402123"&gt;
          &lt;autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/&gt;
      &lt;/scannerConfigBuildInfo&gt;
  </code></pre>