Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources$NotFoundException after accessing a layout file in DFM #379

Open
giangpham96 opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@giangpham96
Copy link

giangpham96 commented Jan 16, 2025

Describe the bug

Crash after code inside DFM access a layout file in DFM

Bundletool version(s) affected
Version: 1.18.0

Stacktrace

\\ the above isn't relevant

Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7e020000
      at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:230)

\\ the following isn't relevant

To Reproduce

  • Clone the repo
  • Build the aab with
    ./gradlew :app:bundleDebug
  • Build the apks with
    bundletool build-apks --local-testing --bundle app-debug.aab --output app.apks
  • Install the app with
    bundletool install-apks --apks app.apks
  • Open the app, it will install the dynamic module
  • The app crashes when accessing the CustomView

Expected behavior

  • The view can successfully inflate its layout

Known workaround
If you have found a workaround, please specify what it is.
Upload the aab to Play Store internal track and install as a tester

Environment:
OS: Android 13

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant