未能(无法)部署到Visual Studio Android Emulator(Xamarin.Forms)

未能(无法)部署到Visual Studio Android Emulator(Xamarin.Forms),android,debugging,xamarin,Android,Debugging,Xamarin,在调试Xamarin PCL项目时遇到问题。我知道代码没有问题,因为我可以在Windows Phone Emulator上调试,但无法在Android Emulator上调试 在Win10上使用VS2015 Prof。我可以毫无问题地构建解决方案,只需在调试bug中启动它(无论是对实际设备还是模拟器) 2>开始部署5.7英寸棉花糖(6.0.0)XHDPI手机。。。 2> 正在部署5.7英寸棉花糖(6.0.0)XHDPI手机。。。 2> 开始构建。 2> D:\Programs\Java\jdk1

在调试Xamarin PCL项目时遇到问题。我知道代码没有问题,因为我可以在Windows Phone Emulator上调试,但无法在Android Emulator上调试

在Win10上使用VS2015 Prof。我可以毫无问题地构建解决方案,只需在调试bug中启动它(无论是对实际设备还是模拟器)

2>开始部署5.7英寸棉花糖(6.0.0)XHDPI手机。。。
2> 正在部署5.7英寸棉花糖(6.0.0)XHDPI手机。。。
2> 开始构建。
2> D:\Programs\Java\jdk1.8.0\u 102\\bin\jarsigner.exe-keystore C:\key\keystore-storepass ttttt-keypass ttttttt-digestalg SHA1-sigalg md5withRSA-signedjar-bin\Debug\\com.data-Signed-Unaligned.apk D:\WebDevelopment\XF.data\XF.data\XF.data.Droid\obj\Debug\android\android\android\bin\com.data.apk tttaps
2> 没有提供-tsa或-tsacert,并且这个jar没有时间戳。如果没有时间戳,用户可能无法在签名者证书的到期日(2042-06-26)或任何未来撤销日期之后验证此jar。
2> D:\Programs\Android\Android sdk\build tools\24.0.1\zipalign.exe 4“D:\WebDevelopment\XF.Data\XF.Data\XF.Data.Droid\bin\Debug\com.Data Signed Unaligned.apk”“bin\Debug\\com.Data Signed.apk”
2> D:\Programs\Android\Android sdk\platform tools\adb.exe-s 169.254.147.66:5555 shell getprop ro.build.version.sdk
2> D:\Programs\Android\Android sdk\platform tools\adb.exe-s 169.254.147.66:5555 shell getprop ro.product.cpu.abilist64
2> D:\Programs\Android\Android sdk\platform tools\adb.exe-s 169.254.147.66:5555 shell getprop ro.product.cpu.abi
2> :部署失败
2> System.InvalidOperationException:“D:\Programs\Java\jdk1.8.0\U 102\bin\jarsigner.exe”已退出,代码为“1”:
2> 位于Xamarin.AndroidTools.PlatformPackage.Exec(字符串步骤、ProcessStartInfo psi、IProgressNotifier progressReporter、CancellationToken令牌)
2> 位于Xamarin.AndroidTools.PlatformPackage.Jarsigner(字符串unsigned、字符串packageDir、IProgressNotifier progressReporter、CancellationToken令牌)
2> 位于Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath(Int32 apiLevel、字符串aaptPath、IProgressNotifier progressReporter、CancellationToken令牌)
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync6.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync3.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在System.Runtime.CompilerServices.TaskAwaiter.GetResult()中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync2.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync1.MoveNext()中
2> “InstallPackageAssemblies”任务意外失败。
2> System.AggregateException:发生一个或多个错误。-->Xamarin.AndroidTools.AndroidDeploymentException:InternalError-->System.InvalidOperationException:'D:\Programs\Java\jdk1.8.0_102\bin\jarsigner.exe'已退出,代码为'1':
2> 位于Xamarin.AndroidTools.PlatformPackage.Exec(字符串步骤、ProcessStartInfo psi、IProgressNotifier progressReporter、CancellationToken令牌)
2> 位于Xamarin.AndroidTools.PlatformPackage.Jarsigner(字符串unsigned、字符串packageDir、IProgressNotifier progressReporter、CancellationToken令牌)
2> 位于Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath(Int32 apiLevel、字符串aaptPath、IProgressNotifier progressReporter、CancellationToken令牌)
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync6.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync3.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在System.Runtime.CompilerServices.TaskAwaiter.GetResult()中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync2.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync1.MoveNext()中
2> ---内部异常堆栈跟踪的结束---
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync1.MoveNext()中
2> ---来自引发异常的上一个位置的堆栈结束跟踪---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
2> 在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
2> 在Xamarin.AndroidTools.AndroidDeploySession.c_uasync0.MoveNext()中
2> ---内部异常堆栈跟踪的结束---
2> 位于System.Threading.Tasks.Task.ThrowifeException(布尔值IncludeTaskCanceledException)
2> 在System.Threading.Tasks.Task.Wait(Int32毫秒计时,CancellationToken CancellationToken)
2> 在System.Threading.Tasks.Task.Wait()中
2> 在Xamarin.Android.Tasks.Instal
2>Starting deploy 5.7" Marshmallow (6.0.0) XHDPI Phone ...
2>Deploying 5.7" Marshmallow (6.0.0) XHDPI Phone ...
2>Build started.
2>D:\Programs\Java\jdk1.8.0_102\\bin\jarsigner.exe -keystore C:\key\keystore -storepass ttttt -keypass ttttt -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.data-Signed-Unaligned.apk D:\WebDevelopment\XF.Data\XF.Data\XF.Data.Droid\obj\Debug\android\bin\com.data.apk tttapps 
2>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2042-06-26) or after any future revocation date.
2>D:\Programs\Android\android-sdk\build-tools\24.0.1\zipalign.exe 4 "D:\WebDevelopment\XF.Data\XF.Data\XF.Data.Droid\bin\Debug\com.data-Signed-Unaligned.apk" "bin\Debug\\com.data-Signed.apk" 
2>D:\Programs\Android\android-sdk\platform-tools\adb.exe -s 169.254.147.66:5555  shell getprop ro.build.version.sdk 
2>D:\Programs\Android\android-sdk\platform-tools\adb.exe -s 169.254.147.66:5555  shell getprop ro.product.cpu.abilist64 
2>D:\Programs\Android\android-sdk\platform-tools\adb.exe -s 169.254.147.66:5555  shell getprop ro.product.cpu.abi 
2>:Deployment failed
2>System.InvalidOperationException: 'D:\Programs\Java\jdk1.8.0_102\bin\jarsigner.exe' exited with code '1': 
2>   at Xamarin.AndroidTools.PlatformPackage.Exec(String step, ProcessStartInfo psi, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.Jarsigner(String unsigned, String packageDir, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath(Int32 apiLevel, String aaptPath, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<InstallSharedPlatformAsync>c__async6.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<EnsureCorrectSharedRuntimes>c__async3.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>c__async2.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>The "InstallPackageAssemblies" task failed unexpectedly.
2>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> System.InvalidOperationException: 'D:\Programs\Java\jdk1.8.0_102\bin\jarsigner.exe' exited with code '1': 
2>   at Xamarin.AndroidTools.PlatformPackage.Exec(String step, ProcessStartInfo psi, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.Jarsigner(String unsigned, String packageDir, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath(Int32 apiLevel, String aaptPath, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<InstallSharedPlatformAsync>c__async6.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<EnsureCorrectSharedRuntimes>c__async3.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>c__async2.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>   --- End of inner exception stack trace ---
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()
2>   --- End of inner exception stack trace ---
2>   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
2>   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
2>   at System.Threading.Tasks.Task.Wait()
2>   at Xamarin.Android.Tasks.InstallPackageAssemblies.Execute()
2>   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
2>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> System.InvalidOperationException: 'D:\Programs\Java\jdk1.8.0_102\bin\jarsigner.exe' exited with code '1': 
2>   at Xamarin.AndroidTools.PlatformPackage.Exec(String step, ProcessStartInfo psi, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.Jarsigner(String unsigned, String packageDir, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.PlatformPackage.GetPlatformPackagePath(Int32 apiLevel, String aaptPath, IProgressNotifier progressReporter, CancellationToken token)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<InstallSharedPlatformAsync>c__async6.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<EnsureCorrectSharedRuntimes>c__async3.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>c__async2.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>   --- End of inner exception stack trace ---
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()<---
2>
2>Build FAILED.