版本:3.7.3
在cocos 插屏设置中选择图片,
在编译器->选择版本,点击进入目录,找到E:cocos-dashboard-editorsCreator3.7.3resourcesresources3denginecocosgamesplash-screen.ts 文件,
图中const text = 'Created with Cocos' text值设为空,也可以直接换一张铺满全屏的图片,重新编译打包即可
打安卓原生包后想要替换应用图标。
1:找到工程如下目录:H:spacecocos_projnativeengineandroidres,替换mipmap开头的文件夹下的png文件。
2:我猜测是build之后将引擎如下目录的图标文件编译到工程中:D:cocos-dashboard-editorsCreator3.7.3resourcesresources3denginetemplatesandroidtemplateres
版本:CocosDashboard 2.0.1,操作拖拽底部栏时导致其无法打开,
文件->布局->默认布局即可恢复
版本3.7.4
生成步骤中问题,查日志:
gradle问题:需要提前安装gradle,Index of /gradle/,从此处下载需要安装的版本和
6.5.1all的zip压缩包,解压gradle.zip,
配置环境变量:GRADLE_PATH,值为解压后bin目录,加入到path:%GRADLE_PATH%
然后cmd:gradle -v,在C://用户//.gradle目录,
在目录下:
allprojects {buildscript {repositories {maven { url '/' }maven { url '/' }}}repositories {maven { url '/' }maven { url '/' }}println "${it.name}: Aliyun maven mirror injected"
}
3.7.4版本的编译器构建过程需要gradle6.5.1的包,所以将gradle-6.5.1-all.zip放到刚才生成的C:用户.gradlewrapperdistsgradle-6.5.1-all6h663p0sr4k8mpjp5mmtl1rvjj目录下。
错误日志
An old version of CMake is being used that cannot automatically detectcompiler attributes. Compiler identification is being bypassed. Somevalues may be wrong or missing. Update to CMake 3.19 or newer to useCMake's built-in compiler identification.Call Stack (most recent call first):
日志看起来像是cmake版本过低导致,尝试在android studio包版本管理工具中下载3.20版本的cmake,并且配置在cocos中的程序管理器中的cmake选择中,但是还是编译失败。
解决:这是因为ndk和cmake版本不匹配导致的,在安装cmake时漏看官网的这张图:
将ndk版本换成红色框中的一种,将cmake换成3.10.2,在程序管理器中配置,重新打包编译即可。
在安装的sdk目录下:androidsdkplatform-tools,执行cmd。
手机端:开发者选项,配对码页:找到ip:port,
在上述cmd中执行 adb pair ip:port,然后输入六位码,
正确后该页消失,来到无线页面,
找到ip:port,继续执行adb connect ip:port
成功后来到cocos构建发布页,完成构建、生成、点击运行就可以安装到手机上了。
本文发布于:2024-02-02 17:31:43,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170686630445350.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |