-
Notifications
You must be signed in to change notification settings - Fork 68
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
Xamarin.Forms' Android doesn't compile with R8/ProGuard active in Release mode #58
Comments
Please attach a sample project |
Also, I noticed that on Android Oreo, the icon doesn't get any color (not even the gray when no color is set). Any idea why? I've only been testing on Android 8 and 9. Check this out: As I know, this color feature was added on API 21, right? Not sure though.. Also, the icon file is exactly the same on both. This could be a thing on my physical device.. it's a Samsung A5 2017 with the brand modified Android system and things.. And, by the way, thanks for the plugin, it's pretty good. I've been testing and if everything runs smooth, I'll use it on production. |
HI! Does anyone has a solution or a workaround for this problem? Getting the same error in release mode, with code shrinker set to R8 and with Plugin.LocalNotification version 5.0.0 or 5.0.1. EDIT: Only way I've found to compile was by adding the following to proguard.cfg: |
Has a solution in #72 |
Describe the bug
Xamarin.Forms' Android doesn't compile with R8/ProGuard active in Release mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful compilation.
Platform:
Smartphone:
Additional context
Error when R8 active: Compilation can't be completed because some library classes are missing.
Error when ProGuard active: "java.exe" exited with code 1
It builds normally when no code reducer is selected.
Haven't tested on Debug mode (where code reducer is useless).
The text was updated successfully, but these errors were encountered: