问题
I recently updated the Xamarin.Android.Support libraries from 24.2.1 to 25.3.1, so I was able to get Push Notifications to work on Android. While that made the Push Notifications work, it has now introduced an issue that only occurs when I build the project in Release mode, with ProGuard enabled.
The final error is the very generic
"java.exe" exited with code 1.
The most meaningful I can extract from the Output window (when the Output setting has been set to Diagnostics) is
Exception in thread "main" java.lang.StackOverflowError (TaskId:289)
1> at proguard.util.OrMatcher.matches(OrMatcher.java:46) (TaskId:289)
// This line is repeated 1024 times.
I can't really revert back to the previous Support libraries, because I need Push Notifications to work.
Has anyone has similar issues, or is my only option to simply disable ProGuard, and live with the larger APK size?
Edit: Uploaded a Diagnostics build log: https://pastebin.com/Mu9K8rbX (Couldn't include everything, pastebin has a limit on 512kb)
来源:https://stackoverflow.com/questions/43760424/xamarin-proguard-stackoverflowerror