My app is already in the Playstore. I want to add a dynamic feature to it.
Whenever I try to test and see if it works with internal tests, it gives me error -2 and says that it can't find the feature's module. Which is weird because the bundle I uploaded has it. Could this be because when it tries to download it, it gets confused by the app that's already in the playstore (Which does not have the module)?
Are you generating an apk which has your feature module included into it. you can try using bundle-tool and use its mode
--mode=universalto generate an apk which will include your all feature modules.Also if you want to test your dynamic modules locally you can use its
--local-testingflag.Here are the steps:
To extract an apk out of it..you can rename universalapk.apks to universalapk.zip and open it. you will get the apk
or to install it, you can use:
Refer to this link: for generating apk with feature modules: Generate Apk file from aab file (android app bundle)