android / android/codelab-android-dynamic-features

App crashes on FileNotfoundException after addOnSuccessListener.

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
129
Forks
51
PR merge metrics
No merged PRs in 30d

Description

After following the steps in "[Download an on-demand module]".

Then updating the aab file in playconsole, After downloading the testing as given.

Initially I got the Toast "The assets module is not installed", Then "Module assets installed", after that got the toast "Loading assets".

Then I thought the asset is download and ready, but when Tapped on the "show assets" button, the app crashed with expectation "File Not Found Exception"

Their is a case where it works fine, When I build the same code with increasing the versionCode. After updating to the new version, which contains same set of code, then on tapping the "Show Assets" button, Conents in assest module is shown properly. This time I don't face any crash.

Can you explain whats happing here?

Contributor guide

Open the contributing guide

Research direction

Reproduce the on-demand module flow described in the issue, including updating the AAB in Play Console and tapping the "show assets" button after the addOnSuccessListener callback. Compare the failing build with the build that only changes versionCode. Done means identifying the cause of the FileNotFoundException and documenting a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.