版本2.0.1
编译模式:release
使用 Android Studio 工程:D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
Initialized native services in: C:\Users\许健.gradle\native
The client will now receive all logging from the daemon (pid: 10128). The daemon log file: C:\Users\许健.gradle\daemon\4.10.3\daemon-10128.out.log
Starting 5th build in daemon [uptime: 22 mins 53.299 secs, performance: 100%, no major garbage collections]
Using 4 worker leases.
Invalidating in-memory cache of D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio.gradle\4.10.3\fileHashes\fileHashes.bin
Starting Build
Settings evaluated using settings file ‘D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:libcocos2dx’, project ‘:poker_M_3’]
Parallel execution is an incubating feature.
Configure project :
Evaluating root project ‘proj.android-studio’ using build file ‘D:\cocosCode\poker_M_3\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
Configure project :libcocos2dx
Evaluating project ‘:libcocos2dx’ using build file ‘D:\cocosCode\poker_M_3\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\libcocos2dx\build.gradle’.
FAILURE: Build failed with an exception.
-
Where:
Build file ‘D:\cocosCode\poker_M_3\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\libcocos2dx\build.gradle’ line: 1 -
What went wrong:
A problem occurred evaluating project ‘:libcocos2dx’.
java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0
-
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 0s
执行命令出错,返回值:1。
大家帮忙看下