2.X的 超过8.5 会有很多问题,都是坑
在模块的 build.gradle 里面加上 namespace 试试,比如 namespace ‘org.cocos2dx.lib’,同时把manifest里面的 package 去掉
感谢,之前没gradle成功就两个模块,构建成功后,多了libcocos2dx这个模块,里面的build.gradle没有namespace,我加上就能解决这个问题了。但是解决了还有,哈哈哈
帮我看看?
1: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:GameWord:buildNdkBuildDebug[x86_64][cocos2djs]’.
com.android.ide.common.process.ProcessException: Android NDK: WARNING: Unsupported source file extensions in C:\ProgramData\cocos\editors\Creator\2.4.8\resources\cocos2d-x/cocos/Android.mk for module cocos2dx_static
Android NDK: …/external/sources/edtaa3func/edtaa3func.h renderer/memop/RecyclePool.hpp
1: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:GameWord:buildNdkBuildDebug[x86_64][cocos2djs]’.
com.android.ide.common.process.ProcessException: Android NDK: WARNING: Unsupported source file extensions in C:\ProgramData\cocos\editors\Creator\2.4.8\resources\cocos2d-x/cocos/Android.mk for module cocos2dx_static
Android NDK: …/external/sources/edtaa3func/edtaa3func.h renderer/memop/RecyclePool.hpp
升级到cocosCreater2.4.13,构建安卓工程后,在AndroidStudio64.exe里修改gradle8.7.2后,根据报错信息修改后,编译和打APK成功。