Why does my MonoDroid / Xamarin.Android project unexpectedly give me "java" exiting with code 1. "error?"

While working on my MonoDroid / Xamarin.Android app, he suddenly stopped building by telling me

"java" exited with code 1.

After enabling MSBuild standard output, he showed that an error had occurred at Xamarin.Android.Common.targetslocated at C:\Program Files (x86)\MSBuild\Xamarin\Android. Line (line 988) starts this xml block:

<CompileToDalvik 
    JavaMaximumHeapSize="$(JavaMaximumHeapSize)"
    JavaOptions="$(JavaOptions)"
    AndroidSdkDirectory="$(_AndroidSdkDirectory)"
    ClassesOutputDirectory="$(IntermediateOutputPath)android\bin\classes"
    JavaSdkDirectory="$(_JavaSdkDirectory)"
    MonoPlatformJarPath="$(MonoPlatformJarPath)"
    JavaSourceFiles="@(AndroidJavaSource)" 
    JavaLibraries="@(AndroidJavaLibrary)"
    LibraryProjectJars="$(IntermediateOutputPath)__library_projects__\*.jar"
UseDx="$(UseDx)"
/>

In addition, when I have the file above, I have 53 warnings, similar to:

The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'ResolveReferencesDependsOn' in namespace 
'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property, AllowUnsafeBlocks, ... [followed by a long list of elements]

, , , , , . , , , , . , - , , , , . , , ?

: M4A, , , M4A, - .

: , , , , , . , , . 30- . , Visual Studio. , .

+4
4

, , . , , .

0

. . ,

1. Delete Bin and obj folder from project
2. Delete Solution File From Project Folder
3. Open New Visual Studio and then Click File > Open > Project/Solution >
   Select Folder Where placed you project.
   and after all, Rebuild Solution file and then rebuild your project.

, .....

0

. , sdk Program Files, AppData. "" > "Xamarin" > Android Visual Studio .

0

, Proguard .

Right Click on Project -> Click Properties -> Android Options -> Uncheck Checkbox of Enable Proguard. 
0

All Articles