cocos2dx 3.6 cpp项目编译android加入第三方jar编译报错
在libs目录下,无论是添加百度地图的jar 还是 高德地图的jar 还是 google play的jar都会报错
执行 cocos compile -p android -m release 编译,差不多编译完成时报错如下:
…
-pre-compile:
-compile:
Compiling 3 source files to /Volumes/winToMac/works/TestApp/proj.android/bin/classes
错误: 读取/Volumes/winToMac/works/TestApp/proj.android/libs/._BaiduLBSAndroid.jar时出错; error in opening zip file
警告: 源值1.5已过时, 将在未来所有发行版中删除
警告: 目标值1.5已过时, 将在未来所有发行版中删除
警告: 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
1 个错误
3 个警告
BUILD FAILED
/Volumes/macExt/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Volumes/macExt/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 13 seconds
Error running command, return code: 1
已解决,都是mac 下的 .xxx文件惹的祸,查找 . 前缀的文件
执行 find /Volumes/winToMac/works/TestApp -name “.*"
删除它执行 find /Volumes/winToMac/works/TestApp -name ".*” -delete