cocos编译报错,小白求大佬们看下

Creator 版本:2.4.7

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

Initialized native services in: C:\Users\银豆.gradle\native
Initialized jansi services in: C:\Users\银豆.gradle\native
Found daemon DaemonInfo{pid=672, address=[13233fba-32d7-4d3e-84bc-4bcbb0f65759 port:53854, addresses:[/127.0.0.1]], state=Idle, lastBusy=1685000154166, context=DefaultDaemonContext[uid=fd690b68-d5c4-424e-9d84-1be87ffd5c40,javaHome=E:\Android\JDK,daemonRegistryDir=C:\Users\银豆.gradle\daemon,pid=672,idleTimeout=10800000,priority=NORMAL,daemonOpts=–add-opens,java.base/java.util=ALL-UNNAMED,–add-opens,java.base/java.lang=ALL-UNNAMED,–add-opens,java.base/java.lang.invoke=ALL-UNNAMED,–add-opens,java.base/java.util=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.base/java.nio.charset=ALL-UNNAMED,–add-opens,java.base/java.net=ALL-UNNAMED,–add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} however its context does not match the desired criteria.
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=E:\Android\jdk1.8.0_45,daemonRegistryDir=C:\Users\银豆.gradle\daemon,pid=4532,idleTimeout=null,priority=NORMAL,daemonOpts=-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
Actual: DefaultDaemonContext[uid=fd690b68-d5c4-424e-9d84-1be87ffd5c40,javaHome=E:\Android\JDK,daemonRegistryDir=C:\Users\银豆.gradle\daemon,pid=672,idleTimeout=10800000,priority=NORMAL,daemonOpts=–add-opens,java.base/java.util=ALL-UNNAMED,–add-opens,java.base/java.lang=ALL-UNNAMED,–add-opens,java.base/java.lang.invoke=ALL-UNNAMED,–add-opens,java.base/java.util=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.base/java.nio.charset=ALL-UNNAMED,–add-opens,java.base/java.net=ALL-UNNAMED,–add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]

Looking for a different daemon…
The client will now receive all logging from the daemon (pid: 9572). The daemon log file: C:\Users\银豆.gradle\daemon\7.2\daemon-9572.out.log
Starting 3rd build in daemon [uptime: 36 mins 55.013 secs, performance: 98%, non-heap usage: 25% of 256 MiB]
Using 8 worker leases.
Now considering [E:\cocosGames\cocosGames\client\proj\build\jsb-link\frameworks\runtime-src\proj.android-studio] as hierarchies to watch
Not watching anything anymore
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file ‘E:\cocosGames\cocosGames\client\proj\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘E:\cocosGames\cocosGames\client\proj\build\jsb-link\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:instantapp’, project ‘:libcocos2dx’, project ‘:XPQP’]

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

Configure project :instantapp
Evaluating project ‘:instantapp’ using build file ‘E:\cocosGames\cocosGames\client\proj\build\jsb-link\frameworks\runtime-src\proj.android-studio\instantapp\build.gradle’.
WARNING:: Using flatDir should be avoided because it doesn’t support any meta-data formats.
android.ndkVersion from module build.gradle is [not set]
android.ndkPath from module build.gradle is not set
ndk.dir in local.properties is E:\Android\Sdk\ndk\25.2.9519653\build
Not considering ANDROID_NDK_HOME because support was removed after deprecation period.
sdkFolder is E:\Android\Sdk

FAILURE: Build failed with an exception.Because no explicit NDK was requested, the default version [21.4.7075529] for this Android Gradle Plugin will be used

  • What went wrong:
    A problem occurred configuring project ‘:instantapp’.

com.android.builder.errors.EvalIssueException: NDK at E:\Android\Sdk\ndk\25.2.9519653\build did not have a source.properties file

  • 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 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface

BUILD FAILED in 2s
Not watching anything anymore
Watched directory hierarchies: []
Error running command, return code: 1.

ndk过高,19-21,推荐21.4(不含)以下的21版本

你好,试过了21.3.6528147 及21.4.7075529,编译未成功,提示:

  • What went wrong:
    A problem occurred configuring project ‘:instantapp’.

com.android.builder.errors.EvalIssueException: NDK at E:\Android\Sdk\ndk\21.4.7075529\build did not have a source.properties file

AS那里不要选‘:instantapp’,选项目的

是as哪里去更改设置啊?