100. 2024-03-03周总结
- 打包报错
- docker磁盘清理
- unity获取本地化价格
1. 打包报错
第一个报错:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.InternalStaticBatchingUtility.CombineGameObjects (UnityEngine.GameObject[] gos, UnityEngine.GameObject staticBatchRoot, System.Boolean isEditorPostprocessScene, UnityEngine.InternalStaticBatchingUtility+StaticBatcherGOSorter sorter)
参考这个文档解决
第二个报错:
1 | b"Execution failed for task ':launcher:processReleaseResources'.\n" |
可以通过升级gradle到4.2.1解决
2. docekr磁盘清理
磁盘满了,发现通过du -sh *
一步步发现是/var/lib/containers/storage/overlay-containers/
下某个容器的ctr.log占用很大,通过命令cat /dev/null > ctr.log
清楚日志后恢复
3. unity获取本地化价格
unity官方插件iap自带相关接口获取