编译网狐旗舰大联盟APK时遇到的问题
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[aidl] aidl.exe E 10-10 22:47:55 14356 11232 io_delegate.cpp:141] Error while creating E:\DLM\mobile\frameworks\cocos2d-x\cocos\platform\android\java\gen\E:: Invalid argument
[aidl] aidl.exe E 10-10 22:47:55 14356 11232 aidl.cpp:225] Could not open dependency file: E:\DLM\mobile\frameworks\cocos2d-x\cocos\platform\android\java\gen\E:\DLM\mobile\frameworks\cocos2d-x\cocos\platform\android\java\src\com\enhance\gameservice\IGameTuningService.java.d
BUILD FAILED
E:\tools\android-sdk-windows\tools\ant\build.xml:597: The following error occurred while executing this line:
E:\tools\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
E:\tools\android-sdk-windows\tools\ant\build.xml:655: null returned: 1
Total time: 1 second
执行命令出错,返回值:1。
*********************cocos compile fail*********************
求解。
你用这个方法试试
Eclipse菜单 – Window – Preferences – Java – Installed JREs – 选中栏目表格中的jre项 – Edit – Add External JARs – 选择jdk目录/lib/tools.jar - 确认其加入JRE system libraries– Finish – OK
更新一下你lib库,这是给你参考的链接:https://www.cnblogs.com/duwei/p/4270194.html