cocos create2.4编译报错

编译模式:release
使用 Android Studio 工程:E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’

Initialized native services in: C:\Users\Administrator.gradle\native
The client will now receive all logging from the daemon (pid: 8064). The daemon log file: C:\Users\Administrator.gradle\daemon\4.10.3\daemon-8064.out.log
Starting 5th build in daemon [uptime: 20 mins 38.545 secs, performance: 99%, no major garbage collections]
Using 4 worker leases.
Starting Build
Settings evaluated using settings file ‘E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:game’, project ‘:instantapp’, project ‘:libcocos2dx’, project ‘:ssn’]
Parallel execution is an incubating feature.

Configure project :
Evaluating root project ‘proj.android-studio’ using build file ‘E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.

Configure project :game
FAILURE: Build failed with an exception.
Evaluating project ‘:game’ using build file ‘E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\game\build.gradle’.
Creating configuration androidTestUtil

  • Where:
    Build file ‘E:\Build\jsb-link\frameworks\runtime-src\proj.android-studio\game\build.gradle’ line: 2

  • What went wrong:
    A problem occurred evaluating project ‘:game’.

Failed to apply plugin [id ‘com.android.feature’]
Could not create an instance of type com.android.build.gradle.FeatureExtension_Decorated.
Could not create an instance of type com.android.build.gradle.internal.api.DefaultAndroidSourceSet.
Uninitialized object exists on backward branch 70
Exception Details:
Location:
com/android/build/gradle/internal/scope/BuildArtifactsHolder.newArtifact(Lcom/android/build/api/artifact/BuildableArtifact;)Lcom/android/build/gradle/internal/scope/BuildArtifactsHolder$BuildableArtifactData; @119: goto
Reason:
Error exists in the bytecode
Bytecode:
0000000: bb02 0559 2bb9 0208 0100 c000 b82b b902
0000010: 0c01 0001 b902 1202 0059 1302 14b8 0051
0000020: c001 734d 3a0d 3a0c 3a0b 2c4e bb01 a659
0000030: 2c10 0ab8 0177 b701 a7c0 00b8 3a04 2db9
0000040: 018e 0100 3a05 1905 b901 9401 0099 002d
0000050: 1905 b901 9801 003a 0619 0419 06c0 00f1
0000060: 3a07 3a0e 1907 b902 1501 003a 0f19 0e19
0000070: 0fb9 01ad 0200 57a7 ffcf 1904 c001 af3a
0000080: 0e19 0b19 0c19 0d19 0eb7 0218 b0
Stackmap Table:
full_frame(@70,{Object[#2],Object[#83],Object[#371],Object[#371],Object[#184],Object[#400],Top,Top,Top,Top,Top,Uninitialized[#0],Uninitialized[#0],Object[#184]},{})
same_frame(@122)

  • 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 0s
执行命令出错,返回值:1。

请问各位大神这个到底是怎么回事

截error这个字段上下文,再看看

这个是一个空的Cocos Create项目工程

这是发布时的设置 构建没问题 就是编译一直卡着了 安卓环境都没问题的 实在不知道怎么回事了 求大神帮帮忙谢谢了!

打开native.log,点击failed右边按钮,全部列出来我看看

org.gradle.jvmargs=-Xmx2048m 这个值不行再加大5096 proj.android-studio/gradle.properties路径
https://forum.cocos.org/t/creator2-4/94685/3可以看看是不是和这帖一样

你好 我这样改了还是编译的时候报一样的错误啊!

creator自身的编译非常慢,异常的慢,强烈建议使用android studio来编译