Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2019 fails to deploy to device #1332

Closed
Slion opened this issue Mar 22, 2021 · 2 comments
Closed

Visual Studio 2019 fails to deploy to device #1332

Slion opened this issue Mar 22, 2021 · 2 comments

Comments

@Slion
Copy link

Slion commented Mar 22, 2021

Is there a way to get around that issue?

Error		Command too long
   at Mono.AndroidTools.Adb.AdbClient.GetCommandBuffer(String command) in C:\A\1\315\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\315\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\315\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\315\s\External\androidtools\Mono.AndroidTools\Internal\AdbClientTaskExtensions.cs:line 62
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass62_0.<RunShellCommand>b__0(Task t) in C:\A\1\315\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 403
   at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()		 	0	

@Slion Slion changed the title Visual Studio 19 fails to deploy to device Visual Studio 2019 fails to deploy to device Mar 22, 2021
@mpbw2
Copy link
Contributor

mpbw2 commented Mar 22, 2021

See dotnet/android#5710

@mpbw2 mpbw2 closed this as completed Mar 22, 2021
@Slion
Copy link
Author

Slion commented Mar 22, 2021

That fixed it for me:
dotnet/android#5710 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants