Xamarin Android Profiler 无法启动 - “使用较新版本的 Xamarin Studio 再次部署您的应用程序”

Cau*_*ite 5 xamarin.android xamarin

我们正在努力让 Xamarin Profiler 启动我们的 Android 应用程序。

我们使用 Visual Studio 2017 Enterprise (15.4.3) 和 Xamarin Profiler v1.6.0.16、Xamarin 版本 4.7.10.38。

每次我们尝试使用探查器时,它都会停止并写入其日志文件:

设备 [...] 上安装的运行时太旧。使用较新版本的 Xamarin Studio 再次部署应用程序。

这让我们感到困惑,因为我们根本没有使用 Xamarin Studio。

我们尝试过:

  • 检查 VS/Xamarin 更新(显然)。
  • 创建一个新的空 Xamarin 项目并尝试对其进行分析。
  • 各种设备和模拟器。
  • “目标框架”、“最低 Android 版本”和“目标 Android 版本”的各种组合。
  • Windows 7 和 Windows 10。
  • Visual Studio v15.4.3 和 v15.5.0。
  • 选中“启用开发人员检测(调试和分析)”。
  • 选中/取消选中“使用共享运行时”和“使用快速部署”。

但我们总是得到相同的结果:“使用较新版本的 Xamarin Studio 再次部署您的应用程序”。

任何建议将不胜感激; 谢谢。

Profiler的日志文件如下:

XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.2416] ##########################################
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.2416] # Xamarin Profiler version -  1.6.0.16
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.2416] #  * Arch x86_64
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.2416] ##########################################
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.3820] initializing android platform
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.3820] initializing ios platform
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.3820] initializing mlpd platform
XamarinProfiler.Core.Profiler Information: 0 : [2017-11-15 10:19:34.4600] processing command line = C:\Program Files (x86)\Xamarin\Profiler\XamarinProfiler.exe --type=android --target=au.com.<redacted>|md52635741fd041340e6948a5329c9048f1.MainScreen --device=025b38394ca8478b --options=name:LGE Nexus 5X
XamarinProfiler.Windows.Core.WindowsRunFactory Information: 0 : [2017-11-15 10:19:44.6840] Creating android run for au.com.<redacted>|md52635741fd041340e6948a5329c9048f1.MainScreen target on device 025b38394ca8478b
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:44.7152] Initializing profiling...
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:44.7620] Waiting for device 025b38394ca8478b to connect
XamarinProfiler.Windows.MainWindow Information: 0 : [2017-11-15 10:19:44.7620] StartRecording for au.com.<redacted>
XamarinProfiler.Core.Platforms.Android.ProfileAndroidRun Information: 0 : [2017-11-15 10:19:45.4582] checking runtime version on device LGE Nexus 5X
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2017-11-15 10:19:46.1802] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2017-11-15 10:19:46.1802] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:46.1812] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:46.1822] Stopping application au.com.<redacted>.md52635741fd041340e6948a5329c9048f1.MainScreen
XamarinProfiler.Windows.MainWindow Error: 0 : [2017-11-15 10:19:46.1892] Error occured on run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.MainWindow Error: 0 : [2017-11-15 10:19:46.1892] Error occured on run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:46.2812] Application au.com.<redacted>.md52635741fd041340e6948a5329c9048f1.MainScreen stopped
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:46.2852] Stopping session. Please wait...
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:19:46.2952] Stopped
XamarinProfiler.Windows.MainWindow Information: 0 : [2017-11-15 10:19:46.2982] CurrentRun.Finished for au.com.<redacted>
XamarinProfiler.Windows.Core.WindowsRunFactory Information: 0 : [2017-11-15 10:20:48.4232] Creating android run for au.com.<redacted>|md52635741fd041340e6948a5329c9048f1.MainScreen target on device 025b38394ca8478b
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:48.4232] Initializing profiling...
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:48.4562] Waiting for device 025b38394ca8478b to connect
XamarinProfiler.Windows.MainWindow Information: 0 : [2017-11-15 10:20:48.4562] StartRecording for au.com.<redacted>
XamarinProfiler.Core.Platforms.Android.ProfileAndroidRun Information: 0 : [2017-11-15 10:20:50.0302] checking runtime version on device LGE Nexus 5X
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2017-11-15 10:20:50.7792] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2017-11-15 10:20:50.7792] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:50.7792] Sorry, something went wrong trying to run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:50.7792] Stopping application au.com.<redacted>.md52635741fd041340e6948a5329c9048f1.MainScreen
XamarinProfiler.Windows.MainWindow Error: 0 : [2017-11-15 10:20:50.7802] Error occured on run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.MainWindow Error: 0 : [2017-11-15 10:20:50.7802] Error occured on run au.com.<redacted>: Runtime installed on device LGE Nexus 5X is too old. Deploy your app again with a newer version of Xamarin Studio
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:50.8902] Application au.com.<redacted>.md52635741fd041340e6948a5329c9048f1.MainScreen stopped
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:50.8902] Stopping session. Please wait...
XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2017-11-15 10:20:50.8902] Stopped
XamarinProfiler.Windows.MainWindow Information: 0 : [2017-11-15 10:20:50.8912] CurrentRun.Finished for au.com.<redacted>
Run Code Online (Sandbox Code Playgroud)

小智 1

我怀疑你们都从 https://learn.microsoft.com/en-gb/xamarin/tools/profiler/?tabs=windows下载探查器

这实际上是一个有错误的旧版本的链接,请尝试从 https://learn.microsoft.com/en-gb/xamarin/tools/profiler/release-notes/1.6/1.6.4下载它

使用最新的稳定版本,它应该可以工作,至少对我来说是这样。 在此输入图像描述 干杯