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 and above and Xamarin.Firebase.Messaging V 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



  • VarunBabuSVarunBabuS INMember ✭✭✭

    hi @shambhaviadiga Could you please try and update Xamarin.GooglePlayServices.Base version to 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

Sign In or Register to comment.