为什么安卓打包报错?

  • Creator 版本:2.3

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:SDK initialized in 9809 ms

FAILURE: Build failed with an exception.

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

java.lang.NullPointerException (no error message)

  • 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 25s

  • 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

  • 重现方式:

  • 之前哪个版本是正常的 :

  • 手机型号 :

  • 手机浏览器 :

  • 编辑器操作系统 :win10

  • 编辑器之前是否有其它报错 :

  • 出现概率:为什么我按照文档配置安卓环境,CocosCreator编译会报错

  • 额外线索:

构建完找到 settings.gradle 这个文件,改成下图红圈的设置

请问新建项目,出现这种问题怎么回事呢。ndk用的android-ndk-r16b

请使用最新的NDK,这个截图前后日志都看不到,看不出具体问题

感谢的你解答。但我这边解决的办法是重新下载的NDK版本。

牛逼
牛逼牛逼牛逼