Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.