Baseflow / LottieXamarin

Render After Effects animations natively on Android, iOS, MacOS and TvOS for Xamarin
https://baseflow.com
Apache License 2.0
1.21k stars 261 forks source link

Error MSB6006: "java.exe" exited with code 1, when update the package version #370

Closed x0axz closed 2 years ago

x0axz commented 2 years ago

🐛 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

x0axz commented 2 years ago

Resolved it with the help of this comment. Make sure to install the new ModernHttpClient version.