title: In Visual Studio 16.9.0 Android "deploy to device" error - Command too long
body: <p>in my xamarin Android project everything worked until I have updated to Visual Studio 2019 v16.9.0.</p>
  <p>Since the upgrade, I am able to successfully build the project but if I try to deploy or debug to device or emulator I receive the following error:</p>
  <p>[final part of build log]</p>
  <pre><code>  Adding assembly reference for Xamarin.Firebase.Analytics.Impl, recursively...
    Adding assembly reference for Xamarin.Firebase.Common, recursively...
    Adding assembly reference for Xamarin.Firebase.Iid, recursively...
    Adding assembly reference for Xamarin.Firebase.Iid.Interop, recursively...
    Adding assembly reference for Xamarin.Firebase.Measurement.Connector, recursively...
    Adding assembly reference for Xamarin.Firebase.Messaging, recursively...
    Adding assembly reference for Xamarin.Forms.Core, recursively...
    Adding assembly reference for Xamarin.Forms.Platform.Android, recursively...
    Adding assembly reference for Xamarin.Forms.Platform, recursively...
    Adding assembly reference for Xamarin.Forms.Xaml, recursively...
    Adding assembly reference for Xamarin.Google.Android.Material, recursively...
    Adding assembly reference for Xamarin.Google.AutoValue.Annotations, recursively...
    Adding assembly reference for Xamarin.Google.Guava.ListenableFuture, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Ads.Identifier, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Analytics, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Analytics.Impl, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Base, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Basement, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Location, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Maps, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Api, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Base, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Places.PlaceReport, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Stats, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.TagManager.V4.Impl, recursively...
    Adding assembly reference for Xamarin.GooglePlayServices.Tasks, recursively...
  Skipping target &quot;_CopyConfigFiles&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_ConvertPdbFiles&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_LinkAssembliesNoShrink&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_AndroidXCecilfy&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_GenerateJavaStubs&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_ManifestMerger&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_ConvertCustomView&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_AndroidXJetifyManifest&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_AddStaticResources&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_GeneratePackageManagerJava&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_GenerateAndroidAssetsDir&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_PrepareCreateBaseApk&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_CreateBaseApk&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_CompileJava&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_CompileNativeAssemblySources&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_CreateApplicationSharedLibraries&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_AndroidXJetifyJavaLibraryRules&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_AndroidXJetifyProguardRules&quot; because all output files are up-to-date with respect to the input files.
  Skipping target &quot;_CompileToDalvik&quot; because all output files are up-to-date with respect to the input files.
  Copying file from &quot;C:\temp\100\android\bin\com.caledoslab.runner.apk&quot; to &quot;C:\Caledos\code\Runner\CaledosLab.Runner.Android\bin\Debug\com.caledoslab.runner.apk&quot;.
  Creating &quot;C:\temp\100\android_debug_keystore.flag&quot; because &quot;AlwaysCreate&quot; was specified.
  C:\Program Files (x86)\Android\android-sdk\build-tools\30.0.2\zipalign.exe -p 4 &quot;C:\temp\100\android\bin\com.caledoslab.runner.apk&quot; &quot;bin\Debug\\com.caledoslab.runner-Signed.apk&quot; 
  C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25\bin\java.exe -jar &quot;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\apksigner.jar&quot; sign --ks &quot;C:\Users
  icold\AppData\Local\Xamarin\Mono for Android\debug.keystore&quot; --ks-pass pass:android --ks-key-alias androiddebugkey --key-pass pass:android --min-sdk-version 21 --max-sdk-version 29  C:\Caledos\code\Runner\CaledosLab.Runner.Android\bin\Debug\com.caledoslab.runner-Signed.apk 
  Signed android package 'bin\Debug\com.caledoslab.runner-Signed.apk'
  Using cached value from RegisterTaskObject
  Found device: emulator-5554
  
      Command too long
  
     at Mono.AndroidTools.Adb.AdbClient.GetCommandBuffer(String command) in C:\A\1\36\s\External\androidtools\Mono.AndroidTools\Adb\AdbClient.cs:line 258
     at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommand(String command, AsyncCallback callback, Object state) in C:\A\1\36\s\External\androidtools\Mono.AndroidTools\Adb\AdbClient.cs:line 227
     at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommandWithStatus(String command, AsyncCallback callback, Object state) in C:\A\1\36\s\External\androidtools\Mono.AndroidTools\Adb\AdbClient.cs:line 274
     at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1](Func`4 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, Object state, TaskCreationOptions creationOptions)
     at Mono.AndroidTools.Internal.AdbClientTaskExtensions.WriteCommandWithStatusAsync(AdbClient client, String command, TaskCreationOptions options) in C:\A\1\36\s\External\androidtools\Mono.AndroidTools\Internal\AdbClientTaskExtensions.cs:line 62
     at Mono.AndroidTools.AndroidDevice.&lt;&gt;c__DisplayClass62_0.&lt;RunShellCommand&gt;b__0(Task t) in C:\A\1\36\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 403
     at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
     at System.Threading.Tasks.Task.Execute()
  Done building project &quot;CaledosLab.Runner.Android.csproj&quot; -- FAILED.
  Build FAILED.
  12&gt;Deployment failed to pixel_3a_xl.
  ========== Build: 11 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
  ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
  </code></pre>
  <p>any idea?</p>
  <p>thank you!</p>