Forum Xamarin.Android

I can't run any xamarin app in debug mode on Samsung Note 3

Hello

I've been developing for this device for about 2 weeks. Everything was fine since today morning. I did an update on the phone (I think this caused problems). After this when I run my apps from visual studio, they appear on the screen, I can see UI and after 0.5 sec and they disappear. I can't hit any breakpoint, which should be hit because I can see the layout!

I am using Visual Studio 2010 and 2012, problem exist on both.
I have another phone with android 2.3 and there everything works fine.
I tried erasing Note 3, but nothing helps.

Please help me

Posts

  • ahaatahaat USMember

    Output from debug, I don't know if it is related:

        Mono.Android.VisualStudio.MonoAndroidPackage Warning: 0 : Initializing Mono.Android.VisualStudio.MonoAndroidPackage
        Mono.AndroidTools.AndroidLogger Error: 0 : [E:]:                     Deployment failed
        Xamarin.AndroidTools.AndroidDeploymentException: FailedToSynchronizeFastDevAssemblies ---> Mono.AndroidTools.AdbException: Permission denied
           at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
           at Mono.AndroidTools.Adb.AdbSyncClient.EndPushSyncItems(IAsyncResult result)
           at Mono.AndroidTools.Internal.AdbClientTaskExtensions.InnerInvoke(TaskCompletionSource`1 tcs, Func`2 endMethod, IAsyncResult l)
           --- End of inner exception stack trace ---
           at Xamarin.AndroidTools.AndroidDeploySession.InstallAssemblies(String destinationPath, CancellationToken token)
           at Xamarin.AndroidTools.AndroidDeploySession.FastDev()
           at Xamarin.AndroidTools.AndroidDeploySession.Run(CancellationToken token)
           at Xamarin.AndroidTools.AndroidDeploySession.RunLogged(CancellationToken token)
        Mono.Android.VisualStudio.MonoAndroidPackage Error: 0 : Background task error
        System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NullReferenceException: Object reference not set to an instance of an object.
           at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommand(String command, AsyncCallback callback, Object state)
           at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommandWithStatus(String command, AsyncCallback callback, Object state)
           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)
           at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass6.<RunShellCommand>b__5(Task t)
           at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
           at System.Threading.Tasks.Task.Execute()
           --- End of inner exception stack trace ---
        ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
           at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommand(String command, AsyncCallback callback, Object state)
           at Mono.AndroidTools.Adb.AdbClient.BeginWriteCommandWithStatus(String command, AsyncCallback callback, Object state)
           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)
           at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass6.<RunShellCommand>b__5(Task t)
           at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
           at System.Threading.Tasks.Task.Execute()<---
    
Sign In or Register to comment.