Xamarin ProGuard StackOverflowError

大兔子大兔子 提交于 2021-02-11 09:41:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!