Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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. What I am missing here? Screenshot

like image 377
Thiyagarajan Purushothaman Avatar asked Nov 23 '19 19:11

Thiyagarajan Purushothaman


People also ask

What is a dynamic feature module?

Dynamic feature modules allow you to separate certain features and resources from the base module of your app and include them in your app bundle. Through Dynamic Delivery, users can later download and install those components on demand after they've already installed the base APK of your app.

How do I build an app bundle using dynamic delivery?

Most app projects won't require much effort to build app bundles that support serving optimized APKs using Dynamic Delivery. For example, if you already organize your app's code and resources according to established conventions, you can build signed Android App Bundles using Android Studio and upload them to Google Play.

What are on demand modules in Android?

What are on demand modules Dynamic feature modules allow you to separate certain features and resources from the base module of your app and include them in your app bundle. Through Dynamic Delivery, users can later download and install those components on demand after they've already installed the base APK of your app.

What is an Android app bundle?

Android App Bundle is a new upload format (aab) which contains all types of codes and resources. Once you upload the aab file to PlayStore, PlayStore will build Apks that are optimized to each device or OS version.


Video Answer


2 Answers

Please check if src/main/assets/bin/Data/ exists and contains contents from unity. What normally happens it's the default gitignore in a vcs project will ignore bin folders and thats right except in unity projects.

like image 166
firetrap Avatar answered Dec 13 '22 13:12

firetrap


We just solved a "not enough storage space to install required resources" error thanks to firetrap answer. Thank you so much!

We had just to white listed "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.

like image 38
marcomandy Avatar answered Dec 13 '22 15:12

marcomandy