So here is the story. Our builds are done on Jenkins via a custom script. 99% of cases, we have our builds successful running on devices. However sometimes (no particular reason :)), we are getting errors as mentioned in the title. And of course, WE DO have enough space to install .apk Now, what is funny about this is that even if we got this error, some devices are running the same .apk without a problem I run logcat to try to figure out what might be the problem and the only thing that I noticed, is when the error occurs, we also see this error in the logs:
The error is a bit misleading, what really happens in this case, Unity fails to extract files into /storage/emulated/0/Android/data/com.potatoplay.MergeManor/files/il2cpp, the most common case is not enough space. But there are probably other reasons as well.
You say in 99% itâs fine, but 1% is not fine, is that 1% happens only on one specific device, or it can happen on any device?
As for devices, this is a good question. Donât have any specifics. One build did not work on OnePlus Nord but worked on motorola g7 power. Furthermore, when I hit âbuild againâ with the same build configuration, NOTHING changed, the build works perfectly on all devices. If needed can provide build logs.
Try using adb or Android Studioâs device explorer and see if you can reach /storage/emulated/0/Android/data/ folder, or even /storage/emulated/0/Android/data/com.potatoplay.MergeManor/ .
Additionally check if device really has enough storage memory.
I am not sure I understand, when you manually install on that specific device, then the app runs fine, but when installing in automated way you get âNot enough storage space to install required resources.â
Hard to say whatâs wrong, if you can please submit a bug a with apk attached, specify which phones and what Android version they have, which show this behavior. Maybe our QA can reproduce
We just solved a ânot enough storage space to install required resourcesâ by whitelisting âunityLibrary/src/main/assets/binâ folder (that default android studio .gitignore ignored). 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.
@Tomas1856 I can reproduce this issue on 90 % of the app starts when the Split Application Binary and Build App Bundle options are turned on (when the new Play Asset Delivery feature used) and the Compression method set to LZ4. If I change it to Default the problem goes away. Bug report id: 1372558
I deleted my library folder within my Unity project and and then reopened Unity and this solved. I think it has something to do with a corrupted build.