diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs b/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs index e2e5b9349b1..463d1cb2280 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs @@ -4,6 +4,7 @@ using System.IO; using Xamarin.Android.Tools; using Microsoft.Android.Build.Tasks; +using System.Text; namespace Xamarin.Android.Tasks { @@ -42,11 +43,13 @@ public class D8 : JavaToolTask public string ExtraArguments { get; set; } - protected override string GenerateCommandLineCommands () + protected override string GenerateResponseFileCommands () { return GetCommandLineBuilder ().ToString (); } + protected override Encoding ResponseFileEncoding => Encoding.UTF8; + protected virtual string MainClass => "com.android.tools.r8.D8"; protected int MinSdkVersion { get; set; }