上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: 运行时崩溃,崩溃日志如上图所示,这大概是图片存放的尺寸不太合适 崩溃设备:小米11,系统:Android 11 解决方法:将splash图从drawable文件夹中移动到drawable-xxxhdpi文件夹中(如果不存在drawable-xxxhdpi文件夹,需手动创建) 阅读全文
posted @ 2021-01-19 15:52 Ring_1992 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: 我们在做游戏优化的时候,内存占用过大,降低内存的最有效方法就是纹理压缩。 在iOS设备中支持的是PVR压缩,在Android中支持的是ETC压缩。 这次主要来说pvr压缩,对图片要求:尺寸为2的N次幂,并且宽高相同。 压缩工具:Mac下的texturetool(所在路径:/Applications/ 阅读全文
posted @ 2020-12-15 15:50 Ring_1992 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 在做CocosCreator游戏的时候需要用到复制到粘贴板功能,发现并没有提供相应的接口,此时需要手动实现接口调用原生层函数 Android实现函数: public static void copyTextToClipboard(final String str) { final AppActivi 阅读全文
posted @ 2020-12-14 15:23 Ring_1992 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 由于谷歌提审要求最低api29,所以对Gradle进行了升级。 但是升级之后出现问题,assets目录没有资源,Android Gradle Plugin Version用3.1.0之前是正常的,升级到3.2.0版本之后的就有问题。 经过查看,发现高版本的Gradle会把资源放在merged_ass 阅读全文
posted @ 2020-12-04 18:40 Ring_1992 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 在安装第三方库的时候,Python报错: ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 解决方法如下: 输入指令: pip --default-timeo 阅读全文
posted @ 2020-11-13 19:56 Ring_1992 阅读(5238) 评论(0) 推荐(0) 编辑
摘要: python处理图像需要用到PIL类库 Mac安装PIL 推荐使用pip工具安装 现在已经用Pillow代替PIL,在使用上没有区别,API都是相同的 Pillow类库依赖另一个模块:multiprocessing 安装步骤: 使用命令sudo easy_install pip安装pip 使用命令s 阅读全文
posted @ 2020-11-13 17:55 Ring_1992 阅读(2541) 评论(0) 推荐(0) 编辑
摘要: - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActi 阅读全文
posted @ 2020-11-10 20:50 Ring_1992 阅读(1636) 评论(0) 推荐(0) 编辑
摘要: - (void)webView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler: 阅读全文
posted @ 2020-11-10 11:30 Ring_1992 阅读(1383) 评论(0) 推荐(0) 编辑
摘要: 安装homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 报错 解决:// 执行下面这句命令,更换为中科院的镜像: git clone gi 阅读全文
posted @ 2020-09-10 11:13 Ring_1992 阅读(2916) 评论(0) 推荐(0) 编辑
摘要: 使用git clone命令从github克隆源码到电脑时出现了以下问题 究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小。 可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。 我配置的是500M。 git config --gl 阅读全文
posted @ 2020-09-09 19:30 Ring_1992 阅读(857) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页