Error MSB6006: "java.exe" exited with code 1, when update the package version
x0axz opened this issue Β· comments
π Bug Report
When I update the Package version from 3.0.6
to any above version and then compile the project, I'm getting this error.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.D8.targets(79,5): error MSB6006: "java.exe" exited with code 1.
.
Xamarin.Android.D8.targets
<D8
Condition=" '$(_UseR8)' != 'True' "
ToolPath="$(JavaToolPath)"
JavaMaximumHeapSize="$(JavaMaximumHeapSize)"
JavaOptions="$(JavaOptions)"
JarPath="$(AndroidR8JarPath)"
AndroidManifestFile="$(IntermediateOutputPath)android\AndroidManifest.xml"
OutputDirectory="$(_AndroidIntermediateDexOutputDirectory)"
Debug="$(AndroidIncludeDebugSymbols)"
JavaPlatformJarPath="$(JavaPlatformJarPath)"
ClassesZip="$(_AndroidIntermediateClassesZip)"
JavaLibrariesToEmbed="@(_JavaLibrariesToCompileForApp);@(_InstantRunJavaReference)"
AlternativeJarLibrariesToEmbed="@(_AlternativeJarForAppD8)"
JavaLibrariesToReference="@(AndroidExternalJavaLibrary)"
EnableDesugar="$(AndroidEnableDesugar)"
ExtraArguments="$(AndroidD8ExtraArguments)"
/>
When I downgrade package to 3.0.6
, and then compile the project, it work smoothly.
Expected behavior
Shouldn't give "java.exe" exited with code 1.
error.
Reproduction steps
Update the Package version from 3.0.6
to any above version.
Configuration
Version: Above 3.0.6
Platform:
Android
Resolved it with the help of this comment. Make sure to install the new ModernHttpClient version.