Skip to content

fix: release build crash with NoSuchMethodError for getNavInfoLiveData#536

Merged
jokerttu merged 1 commit intomainfrom
feat/add-consumer-proguard-rules-for-android-auto
Feb 13, 2026
Merged

fix: release build crash with NoSuchMethodError for getNavInfoLiveData#536
jokerttu merged 1 commit intomainfrom
feat/add-consumer-proguard-rules-for-android-auto

Conversation

@jokerttu
Copy link
Contributor

Fixes release build crash with NoSuchMethodError for getNavInfoLiveData

Release builds crash with NoSuchMethodError: No static method getNavInfoLiveData() when using Android Auto. R8 minification was stripping NavInfoReceivingService.getNavInfoLiveData() because:

  • The library had minifyEnabled true (libraries shouldn't minify themselves)
  • No ProGuard keep rules existed for runtime-accessed methods

This PR removes minifyEnabled from library build (apps handle minification) and add consumer-rules.pro with keep rules for NavInfoReceivingService that automatically apply to consuming apps

Fixes #534

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

Copy link

@TimoPieti TimoPieti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jokerttu jokerttu merged commit d56c96b into main Feb 13, 2026
13 checks passed
@jokerttu jokerttu deleted the feat/add-consumer-proguard-rules-for-android-auto branch February 13, 2026 07:41
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

Successfully merging this pull request may close these issues.

[Bug]: Android Auto app crashes the app in release - java.lang.NoSuchMethodError

3 participants