creator 用android studio打包编译失败

编辑器日志打印出来的是这个,Error: Compile failed. The log file path [ C:\Users\Administrator.CocosCreator\logs\native.log ]
at ChildProcess.handleChildProcess (F:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:20297)
at ChildProcess.e.on (F:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Cocos Console打印出来的是这个Configuration ‘compile’ in project ‘:yxs’ is deprecated. Use ‘implementation’ instead.
Parsing the SDK, no caching allowed
SDK initialized in 1 ms

FAILURE: Build failed with an exception.

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

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.

  • Get more help at https://help.gradle.org

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

帮忙看一下哪里出错了,谢谢。

creator版本1.9.3
android studio版本 3.1.2

android Studio 用2.2.3
ndk 用r16

…我试了下你说的版本,还是报一样的错误

这个是警告,需要修改 gradle 配置文件,把 ‘compile’ 改为 ‘implementation’

SDK 有问题吧,用 AS 导入工程,检查 SDK 和 NDK 的配置

兄弟你看到asset这个目录了吗,为啥我导入的时候没发现这个目录。。。

Gradle 回退到 4.4,就有 assets 了。

好的我试试看谢谢哈

大神我回退到gradle-4.4.1-all gradle-build插件回退到3.1.0 ndk16 还是没有assets目录,