Encountered "java.exe exited with code 2

Problem description:
I am using Visual Studio 2015 with Xamarin 4.4 and Xamarin.Android 7.2.
To implement Push notifications using FCM, I am trying to add Nuget packages Xamarin.GooglePlayServices.Base V 29.0.0.2 and above and Xamarin.Firebase.Messaging V 42.0.0.1 and above.
The moment I install Firebase.Mesasging package, my build breaks saying “java.exe exited with code 2” and I am not able to proceed further.
Please help

Tagged:

Answers

  • VarunBabuSVarunBabuS INMember ✭✭✭

    hi @shambhaviadiga Could you please try and update Xamarin.GooglePlayServices.Base version to 29.0.0.1 because I remember one of my colleague faced similar issue while working with maps

  • shambhaviadigashambhaviadiga USMember

    Thank you Varun for the suggestion but the prerequisite for FCM to work is to have Xamarin.GooglePlayServices.Base version above 29.0.0.2

Sign In or Register to comment.