Creator 版本:2.0.7
目标平台:Android
编辑器操作系统 :window
创建了一个新的hello world案例,可以打包成app,但是用到自己项目中打包就会出现报错,详细信息如下所示:
No history is available.
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\libs’, not found
:SlimeJump:javaPreCompileRelease (Thread[Daemon worker Thread 5,5,main]) completed. Took 0.041 secs.
:SlimeJump:compileReleaseJavaWithJavac (Thread[Daemon worker Thread 5,5,main]) started.
:SlimeJump:compileReleaseJavaWithJavac
Putting task artifact state for task ‘:SlimeJump:compileReleaseJavaWithJavac’ into context took 0.0 secs.
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java’, not found
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\libs’, not found
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java’, not found
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\release\java’, not found
Up-to-date check for task ‘:SlimeJump:compileReleaseJavaWithJavac’ took 0.032 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:SlimeJump:compileReleaseJavaWithJavac’.
Compiling with source level 1.7 and target level 1.7.
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\libs’, not found
:SlimeJump:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java’, not found
file or directory ‘C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\release\java’, not found
Compiling with JDK Java compiler API.
C:\Users\Administrator\Desktop\SlimeGame_Project_7.1\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\org\cocos2dx\javascript\AppActivity.java:60: 错误: 无法将类 SDKWrapper中的方法 setGLSurfaceView应用到给定类型;
SDKWrapper.getInstance().setGLSurfaceView(glSurfaceView);
^
需要: GLSurfaceView,Context
找到: Cocos2dxGLSurfaceView
原因: 实际参数列表和形式参数列表长度不同
1 个错误
:SlimeJump:compileReleaseJavaWithJavac FAILED
:SlimeJump:compileReleaseJavaWithJavac (Thread[Daemon worker Thread 5,5,main]) completed. Took 0.156 secs.
47 actionable tasks: 47 executed
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:SlimeJump:compileReleaseJavaWithJavac’.
Compilation failed; see the compiler error output for details.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 15s
执行命令出错,返回值:1。