简体   繁体   English

与动态功能模块(App Bundle)一起安装时出现“没有足够的存储空间”

[英]"Not enough storage space" when installed with Dynamic Feature Module (App Bundle)

I have a unity project (exported using Unity 2019.3) installed dynamically with DFM of Android App Bundle and uploaded it to google play for internal testing, the dynamic module is downloading fine on demand but when I run UnityActivity I encounter the following error:"Not enough storage space to install required resources" even though I have lot of free space in my mobile device.我有一个使用 Android App Bundle 的 DFM 动态安装的 Unity 项目(使用 Unity 2019.3 导出)并将其上传到 google play 进行内部测试,动态模块按需下载正常,但是当我运行 UnityActivity 时遇到以下错误:“不足够的存储空间来安装所需的资源”,即使我的移动设备中有很多可用空间。 What I am missing here?我在这里缺少什么? Screenshot截屏

Sorry, cannot comment because don't have enough reputation anymore.对不起,不能发表评论,因为没有足够的声望了。

No, don't use the SD card.不,不要使用 SD 卡。

Unity is added as a library so everything is Unity default logic. Unity 被添加为一个库,所以一切都是 Unity 默认逻辑。 Have to dig deeper into the Unity source code and see if able to find a place where is a file path.必须深入挖掘 Unity 源代码,看看是否能够找到文件路径所在的位置。

Compiling the same code from different machines and the result is different.从不同的机器编译相同的代码,结果是不同的。 From some machines, unity doesn't give that error and everything works correctly but from some machines, unity gives that error.在某些机器上,unity 不会出现该错误并且一切正常,但在某些机器上,unity 会出现该错误。 Tested APK with different mobile devices, if error then different mobile devices give that error, is no error then it works in different devices.使用不同的移动设备测试 APK,如果出错,则不同的移动设备给出该错误,没有错误,则它可以在不同的设备上运行。 Deleted also Android Studio with all settings and installed again but no success.还删除了带有所有设置的 Android Studio 并再次安装,但没有成功。 No idea why compiling code from some machines this error occurs.不知道为什么从某些机器编译代码会发生此错误。

Please check if src/main/assets/bin/Data/ exists and contains contents from unity.请检查 src/main/assets/bin/Data/ 是否存在并包含来自 unity 的内容。 What normally happens it's the default gitignore in a vcs project will ignore bin folders and thats right except in unity projects.通常发生的情况是 vcs 项目中的默认 gitignore 将忽略 bin 文件夹,这是正确的,除非在统一项目中。

We just solved a "not enough storage space to install required resources" error thanks to firetrap answer.由于 firetrap 回答,我们刚刚解决了“没有足够的存储空间来安装所需资源”的错误。 Thank you so much!非常感谢!

We had just to white listed "unityLibrary/src/main/assets/bin" folder (that default android studio .gitignore ignored).我们只需要将“unityLibrary/src/main/assets/bin”文件夹列入白名单(忽略默认的android studio .gitignore)。 We were building on a Jenkins server and that folder was not being pushed from the machine we used to export the Unity project to the server.我们在 Jenkins 服务器上构建,并且该文件夹没有从我们用来将 Unity 项目导出到服务器的机器推送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 App Bundle动态功能模块中的访问资源 - Access Resources In Dynamic Feature Module of App Bundle 签署App Bundle基本模块和动态功能模块 - Signing The App Bundle Base Module And Dynamic Feature Module App Bundle,在动态功能模块中,安装前可用的模块 - App Bundle, In Dynamic Feature Module, Module available before install 未安装动态功能模块 - Dynamic Feature Module not getting installed App Bundle - 动态功能模块:在动态功能模块错误中找不到基础项目 - App Bundle - Dynamic feature modules : Base project not found in dynamic feature module error App Bundle:应用程序类可以在动态功能模块中吗? 应用程序包崩溃 - App Bundle: Can Application class be in a Dynamic Feature module? App bundle crashes Android App Bundle:Google Play 150MB 限制似乎包括动态功能模块大小? - Android App Bundle: Google Play 150MB limit seems to include the Dynamic Feature Module size? 将动态功能插入到现有应用程序包中 - Inserting a dynamic feature to an esixting app bundle 安卓模拟器启动时提示“设备存储空间不足” - “There is not enough storage space on the device to store package” when starting Android emulator 运行单元测试用例时,无法在动态功能模块中引用应用程序模块类 - unable to refer app module classes in dynamic feature module when running unit test cases
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM