When I add the Xamarin.Firebase.Messaging library, my project generates an error that I am not able to solve, of the following error 'java.exe exited with code 2', what could be happening?
Image error:
When I add the Xamarin.Firebase.Messaging library, my project generates an error that I am not able to solve, of the following error 'java.exe exited with code 2', what could be happening?
Image error:
Adding Firebase in most applications will hit the 64k method limit in Java and thus require developers to use multi-dex.
A bug has been opened in Xamarin here: https://bugzilla.xamarin.com/show_bug.cgi?id=55117
To work around the issue you can enable multi-dex as shown in the following screenshot:
On release builds, you can also try combining Proguard and Link All options but it requires more work to avoid any side effect to find everything to preserve.