Reputation: 449
I have started developing Xamarin.Forms
applications in Visual Studio Enterprise 2015
as a beginner. When I build my solution I am getting an error like this:
The "AdjustJavacVersionArguments" task failed unexpectedly.
Severity Code Description Project File Line Suppression State Error The "AdjustJavacVersionArguments" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Xamarin.Android.Tasks.AdjustJavacVersionArguments.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() XamarinDemo.Android
What exactly this error means? Do I have a problem with my JDK version?
Upvotes: 2
Views: 2056
Reputation: 449
Problem was solved. I uninstalled JDK v9 and instead installed JDK v8. Later on, in Visual Studio I selected "Tools" -> "Options" and just scrolled down a little and found "Xamarin" -> "Android Settings" and changed the Java Development Kit Location
with the path where the JDK v8 is located. After building the solution, error has been gone.
Upvotes: 2