进口的cocos2d的项目后,日食提高传输两个奇怪的错误:" Android的库更新" ," C / C ++索引器" [英] After import an cocos2d project, eclipse raise an two weird errors: "Android Library Update" , "C/C++ Indexer"

查看:115
本文介绍了进口的cocos2d的项目后,日食提高传输两个奇怪的错误:" Android的库更新" ," C / C ++索引器"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

导入的cocos2d项​​目偏食后,提出两个奇怪的错误:

After importing an cocos2d project to eclipse, it raise two weird errors:

的Andr​​oid库更新,C / C ++索引

错误:

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

先谢谢了。

推荐答案

请参阅我的回答 http://stackoverflow.com/a/七万七千一百五十六分之二千五百八十九万二千七百八十七

我一直在试图解决这一问题了一段时间,我建议用一个项目中的 .cproject 文件在比较模板/ CPP模板默认并在文件中删除多余的部分(S)。
我不得不删除一个部分,我不知道为什么会加入,但现在的工作。

I've been trying to fix this for a while, I'd suggest comparing the .cproject file in your project with the one in templates/cpp-template-default and removing extra section(s) in your file. I had to remove one section, I don't why it was added but it works now.

更新:
看来,一旦你打开Eclipse与NDK_ROOT没有定义这一节加入,并在此之后,即使你定义它,这部分中的配置文件在那里停留,并导致同样的错误,你需要删除它使你的项目工作

Update: It seems this section is added once you open eclipse with NDK_ROOT not defined, and after that, even if you define it, this section stays there in the configuration files and causes the same errors, you need to remove it to get your project to work.

本节看起来是这样,您可以在关闭Eclipse后安全删除它。

The section looks like this, you can remove it safely after you close eclipse.

<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>

这篇关于进口的cocos2d的项目后,日食提高传输两个奇怪的错误:&QUOT; Android的库更新&QUOT; ,&QUOT; C / C ++索引器&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆