当前位置:编程学习 > JAVA >>

编译报错,苦无解决办法,在此跪了

环境 MAC,cocos2d-x-2.1.4引擎 NDK:r8e编译安卓工程报错 
报错信息如下:
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi/libextension.a(CSContentJsonDictionary.o): multiple definition of 'cs::CSJsonDictionary::CSJsonDictionary()'
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/Classes//CSArmature/external_tool/Json/CSContentJsonDictionary.o: previous definition here
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi/libextension.a(CSContentJsonDictionary.o): multiple definition of 'cs::CSJsonDictionary::~CSJsonDictionary()'
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/Classes//CSArmature/external_tool/Json/CSContentJsonDictionary.o: previous definition here
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi/libextension.a(CSContentJsonDictionary.o): multiple definition of 'cs::CSJsonDictionary::insertItem(char const*, int)'
/Users/abc/Documents/AndroidTools/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/game_shared/__/__/Classes//CSArmature/external_tool/Json/CSContentJsonDictionary.o: previous definition here
......后面的与上面是类似的错误

以前版本为2.1.3可以正常编译且真机运行 升级后如上 由于这个错误 一个月前放弃了 但是现在需要升级 请各位帮忙 真心跪了 编译报错 multiple definition mac下编译安卓出错
补充:Java ,  Eclipse
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,