使用cocos compile -p android -m release 时,出错了:
错误日志:
…
找到: AppActivity
原因: 无法通过方法调用转换将实际参数AppActivity转换为Context
/xxxx/util/JNI.java:734: 错误: 无法将类 Util中的方法 getSavePath应用到给定类型;
return Util.getSavePath(context);
^
需要: Context
找到: AppActivity
原因: 无法通过方法调用转换将实际参数AppActivity转换为Context
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
100 个错误
BUILD FAILED
/Users/ping/Desktop/android/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/ping/Desktop/android/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 7 seconds
Error running command, return code: 1
开发环境:Mac、IntelliJ idea 14
使用IntelliJ idea 14还是可以运行的,只是cocos命令不能运行完。导致不能实现批量打包功能。
主要错误应该是依赖了module,但是没有配置好。
请问依赖的module会配置到哪些文件?