.NET for Android error JAVAC0000

Example messages

error JAVAC0000: Foo.java(1,8): javac error: class, interface, or enum expected
error JAVAC0000: Foo.java(1,41): javac error: ';' expected

Issue

During a normal .NET for Android build, Java source code is generated and compiled. This message indicates that javac, the Java programming language compiler, failed to compile Java source code.

Solution

If you have Java source code in your project with a build action of AndroidJavaSource, verify your Java syntax is correct.

Consider submitting a bug if you are getting this error under normal circumstances.