c# - Android 上的 Xamarin Profiler 错误(运行时太旧)

标签 c# xamarin xamarin.forms memory-leaks xamarin-profiler

Xamarin Profiler 不适用于 Android。我有 Visual Studio Enterprise(Xamarin Profiler 需要)。我目前正在尝试测试构建良好的 Microsoft 应用程序的配置文件。
测试项目 GitHub:https://github.com/davidortinau/Xappy
尝试了许多模拟和真实设备。我收到以下错误消息:XamarinProfiler.Windows.MainWindow Error: 0 : [2021-07-13 11:23:05.6658] Error occured on run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0_-_api_28 is too old. Deploy your app again with a newer version of Xamarin Studio我的日志文件:

XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.7818] ########################################## XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.7828] # Xamarin Profiler version - 1.6.10.15 XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.7828] # * Arch x86_64 XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.7828] ########################################## XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.8669] initializing android platform XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.8689] initializing ios platform XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.8689] initializing mlpd platform XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:40.9429] processing command line = --options=name:pixel_2_pie_9_0_-api_28,gc:sgen,maxframes:8 --type=android --device=pixel_2_pie_9_0-api_28 --target=com.microsoft.Xappy|crc6419cf9c8281e18cce.SplashActivity --device=pixel_2_pie_9_0-api_28 --options=name:pixel_2_pie_9_0-api_28 XamarinProfiler.Core.ProfilerService Information: 0 : [2021-07-13 11:22:53.8548] processing command line = --options=name:pixel_2_pie_9_0-api_28,gc:sgen,maxframes:8 --type=android --device=pixel_2_pie_9_0-api_28 XamarinProfiler.Windows.Core.WindowsRunFactory Information: 0 : [2021-07-13 11:22:53.8778] Creating android run for com.microsoft.Xappy|crc6419cf9c8281e18cce.SplashActivity target on device pixel_2_pie_9_0-api_28 XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2021-07-13 11:22:53.8888] Initializing profiling... XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2021-07-13 11:22:53.9088] Waiting for device pixel_2_pie_9_0-api_28 to connect XamarinProfiler.Windows.MainWindow Information: 0 : [2021-07-13 11:22:53.9108] StartRecording for com.microsoft.Xappy XamarinProfiler.Core.Platforms.Android.ProfileAndroidRun Information: 0 : [2021-07-13 11:22:53.9268] checking runtime version on device pixel_2_pie_9_0-api_28 XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2021-07-13 11:22:53.9608] Stopping application com.microsoft.Xappy.crc6419cf9c8281e18cce.SplashActivity XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2021-07-13 11:22:53.9748] Application com.microsoft.Xappy.crc6419cf9c8281e18cce.SplashActivity stopped XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2021-07-13 11:22:53.9778] Sorry, something went wrong trying to run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-api_28 is too old. Deploy your app again with a newer version of Xamarin Studio XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Error: 0 : [2021-07-13 11:22:53.9778] Sorry, something went wrong trying to run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-api_28 is too old. Deploy your app again with a newer version of Xamarin Studio XamarinProfiler.Windows.ViewModels.ProgressReport.ReportViewModel Information: 0 : [2021-07-13 11:22:53.9778] Sorry, something went wrong trying to run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-api_28 is too old. Deploy your app again with a newer version of Xamarin Studio XamarinProfiler.Windows.MainWindow Error: 0 : [2021-07-13 11:22:53.9858] Error occured on run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-api_28 is too old. Deploy your app again with a newer version of Xamarin Studio XamarinProfiler.Windows.MainWindow Error: 0 : [2021-07-13 11:22:53.9858] Error occured on run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-_api_28 is too old. Deploy your app again with a newer version of Xamarin Studio


Xamarin Studio 现在已经不存在了,所以这个日志消息对我来说不是很有帮助。我尝试过与 API 23 (6.0 Marshmallow) 一样古老的设备。关于如何让 Xamarin Profiler 工作的任何想法?

最佳答案

Error occured on run com.microsoft.Xappy: Runtime installed on device pixel_2_pie_9_0-_api_28 is too old. Deploy your app again with a newer version of Xamarin Studio


从错误日志中,您可以尝试以下方法:
  • 将您的 Visual Studio 更新到较新的版本。(例如,最新的
    版本)。
  • 如果问题仍然存在,请下载新版本的 Xamarin Profiler
    , 链接
    是:https://docs.microsoft.com/en-gb/xamarin/tools/profiler/release-notes/1.6/1.6.13
  • 关于c# - Android 上的 Xamarin Profiler 错误(运行时太旧),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68369633/

    相关文章:

    c# - 如何检查 PCL 项目 xamarin 中的服务器是否可达?

    sqlite - 是否可以检查 SQLite 表是否存在。

    c# - C#中的命名字符串格式化

    c# - 如何从方法中返回多种可能性中的一种

    c# - Application.Current 为空,但 new Application() 仍然失败?

    c# - 在 Xamarin.Forms 中,如何从项目文件夹中读取 Assets 列表?

    c# - 通过 Javascript 禁用转发器内的特定验证器

    c# - 使用带有参数的文本资源?

    c# - Xamarin 网格和 StackLayout

    c# - 在 Visual Studio 2017 中向 Xamarin.Forms 应用程序添加新内容页面时出错