-
Creator 版本:CocosCreator_v2.0.4_20181017_win.7z
-
目标平台: Android
-
详细报错信息,包含调用堆栈:太长了,附在后面。
-
重现方式:所有项目
-
之前哪个版本是正常的 :CocosCreator_v1.8.1_20180111_win_setup.exe几个月之前正常,今天突然不正常,我就升级了。还是不行。
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :win10教育版
-
编辑器之前是否有其它报错 :无
-
出现概率:100%
-
额外线索:新建的项目,没有做任何修改。用android studio提示Error:This Gradle plugin requires Studio 3.0 minimum,我在升级,原生环境还没试。
-
详细报错信息,包含调用堆栈:
编译模式:release
使用 Android Studio 工程:C:\Users\xhrrj\Documents\NewProject6\build\jsb-link\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“C:\Users\xhrrj\Documents\NewProject6\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
中间略*****************************************
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:116:38: error: non-member function ‘unsigned int getReferenceCount()’ cannot have cv-qualifier
unsigned int getReferenceCount() const;
^
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:118:1: error: expected unqualified-id before ‘protected’
protected:
^
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:133:17: error: expected class-name before ‘(’ token
virtual ~Ref();
^
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:135:1: error: expected unqualified-id before ‘protected’
protected:
^
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:139
error: ‘friend’ used outside of class
friend class AutoreleasePool;
^
C:\CocosCreator\resources\cocos2d-x/cocos/base/CCRef.h:146:1: error: expected declaration before ‘}’ token
};
^
make.exe: *** [C:/Users/xhrrj/Documents/NewProject6/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2djs_shared///__/Classes/jsb_module_register.o] Error 1
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 6s
42 actionable tasks: 1 executed, 41 up-to-date
执行命令出错,返回值:1。