100. 2024-03-03周总结

  1. 打包报错
  2. docker磁盘清理
  3. 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
2
3
4
5
6
b"Execution failed for task ':launcher:processReleaseResources'.\n"
b'> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade\n'
b' > Android resource linking failed\n'
b' /home/ab/.gradle/caches/transforms-2/files-2.1/769cd96ea1b8496f7f990f8752658b03/jetified-ads-sdk-5.7.0.3/AndroidManifest.xml:53:13-59: AAPT: error: unexpected element <property> found in <manifest><application>.\n'
b' \n'
b'\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自带相关接口获取