An internal error occurred during: "Android Library Update". java.lang.NullPointerException

I just installed the following setting for mobile development with Cocos2d and found the following error: almost every time I restarted Eclipse: “An internal error occurred during:“ Updating the Android library. ”Java.lang.NullPointerException“ Subsequently, nothing happened.

I still could not find the cause of this error (BUT, I have a workaround, see below), I also searched for it on the network and did not find anything related to my environment, which looks like this

  • Win7 64bit
  • adt-bundle-windows-x86_64-20140702 (Eclipse Juno)
  • android-ndk-r9d-windows-x86_64
  • JDK-8u25-Windows-x64

I am posting this since I found a workaround for this annoying sh * tty error that I wasted importing and creating new projects every time it appeared, most of the time after I closed and opened Eclipse.

-------- Workaround ----------- The error is located in the .cproject file located in the proj.android directory. It seems that Eclipse or some kind of plugin is causing some errors in this file. I made the difference 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, everything should be fine)

, - , , , 64-.. , 32- , ...:/

, . , , , - ( ..), ADT.

<cconfiguration id="0.1230402123.1377291156">
        <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug">
            <externalSettings/>
            <extensions>
                <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
                <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
            </extensions>

--- XML ---

<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
    <scannerConfigBuildInfo instanceId="0.1230402123">
        <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
    </scannerConfigBuildInfo>
+4

All Articles