cocos creator (四)构建android项目

在使用cocos creator构建Android项目时遇到了NDK未配置的问题,原因是SDK版本过高。解决方法是在指定文件中添加NDK路径。之后,项目成功编译并打包APK。构建过程中,cocos creator会下载gradle,可能需要较长时间。关键步骤包括配置环境变量,确保SDK版本适中。
摘要由CSDN通过智能技术生成

我把构建步骤放到后面说,先说我遇到的几个问题。

第一

Using incremental javac compilation.
Incremental java compilation is an incubating feature.
Not using incremental javac compilation.
Using incremental javac compilation.
Not using incremental javac compilation.
Not using incremental javac compilation.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':helloworld'.
> NDK not configured.
Download it with SDK manager.)

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 8.074 secs
Stopped 0 compiler daemon(s).
执行命令出错,返回值:1。


这其实是因为sdk版本过高,导致ndk找不见的过。

jsb-default\frameworks\runtime-src\proj.android-studio\lcoal.properties

在这里仿造已经存在的sd

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值