[Bug] Release Build failures starting from material library 1.1.0-alpha07
See original GitHub issueDescription: When using version 1.1.0-alpha07 or more recent version of material design library release builds fail due to proguard warnings.
Warning: com.google.android.material.snackbar.BaseTransientBottomBar$6: can't find referenced method 'android.graphics.Insets getMandatorySystemGestureInsets()' in library class android.view.WindowInsets Warning: com.google.android.material.snackbar.BaseTransientBottomBar$6: can't find referenced class android.graphics.Insets Warning: com.google.android.material.snackbar.BaseTransientBottomBar$6: can't find referenced class android.graphics.Insets Warning: com.google.android.material.snackbar.Snackbar: can't find referenced method 'int getRecommendedTimeoutMillis(int,int)' in library class android.view.accessibility.AccessibilityManager
Expected behavior: Builds should be able to pass fine without having to edit proguard rules
Material Library version: 1.1.0-alpha07 and above
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:8 (3 by maintainers)
Top GitHub Comments
Thanks for the responses. I’m not sure if this will help, but can you try using compileSdkVersion 29?
The Material Android and AndroidX libraries do require compiling with the latest stable Android SDK version. So each year when the next version of Android becomes released as stable, we update our library’s
compileSdkVersion
, which means client apps should update theirs as well, in order to use the latest version of the Material Android and AndroidX libraries.