打包android发生错误

版本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

BUILD FAILED in 0s
执行命令出错,返回值:1。

大家帮忙看下

是我jdk版本过高了么

你好,应该是路径不允许中文字符或者路径过长。

咋还有中文路径,看得我尴尬癌要犯了。。

解决了 谢谢

怎么解决的?

请问怎么解决的