关于构建打包的错误native.log

Building mode: release
Using Android Studio project : D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio
Building apk…
running: ‘“D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’

Initialized native services in: C:\Users\admin.gradle\native
The client will now receive all logging from the daemon (pid: 25216). The daemon log file: C:\Users\admin.gradle\daemon\6.7.1\daemon-25216.out.log
Starting 6th build in daemon [uptime: 1 hrs 31 mins 32.417 secs, performance: 100%, non-heap usage: 11% of 268.4 MB]
Using 20 worker leases.
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\6.7.1\fileHashes\fileHashes.bin
Watching the file system is disabled
Starting Build
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\6.7.1\fileHashes\resourceHashesCache.bin
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\checksums\md5-checksums.bin
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\checksums\sha1-checksums.bin
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\checksums\sha256-checksums.bin
Invalidating in-memory cache of D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\checksums\sha512-checksums.bin

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not open settings generic class cache for settings file ‘D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ (C:\Users\admin.gradle\caches\6.7.1\scripts\bqbcgq6xib9n15h1ilil8s73h).

BUG! exception in phase ‘semantic analysis’ in source unit ‘BuildScript’ Unsupported class file major version 61

  • Try:Compiling settings file ‘D:\work\code\rabbit\rabbit\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’ using BuildScriptTransformer.

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.

BUILD FAILED in 635ms
Error running command, return code: 1.

应该是Java版本不对,试试设置为1.8
不然就是gradle版本或者gradle tools版本不对。

试过 错的更多