After importing the cocos2d project, eclipse will raise two strange errors: "Updating the Android library", "C / C ++ Index",

After importing the cocos2d project for an eclipse, it causes two strange errors:

"Android Library Update", "C / C ++ Index"

Error:

   An internal error occured during :"C/C++" . java.lang.NullPointerException.               
    An internal error occured during :"Android Library Update" . java.lang.NullPointerException.

Thanks in advance.

+2
source share
2 answers

See my answer fooobar.com/questions/1200972 / ...

I tried to fix this for a while, I would suggest comparing the file .cprojectin your project with the one that was in templates/cpp-template-defaultand deleting additional sections in your file. I had to delete one section, I do not understand why it was added, but now it works.

: , , eclipse NDK_ROOT, , , , , , .

: .

<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>
            </storageModule>
            <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
        </cconfiguration>
+8

, project.properties

, .

android.library.reference.1=../cocos2d/cocos/platform/android/java

0

All Articles