xamarin - 如何知道 Azure Hosted VS2017 Agent 中的 Xamarin Android 项目引用了哪个版本的 Xamarin.Android sdk?
问题描述
我有 Xamarin Android 项目使用 Azure Hosted VS2017 来构建它的包。我已经更新了 Xamarin 包并尝试从管道生成构建。它能够成功构建它,但是当我运行应用程序时,抛出了致命异常。
10-02 12:40:53.943 7921-7921/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.telstra.lot, PID: 7921
android.runtime.JavaProxyThrowable: System.DllNotFoundException: System.Native
at (wrapper managed-to-native) Interop+Sys.Stat(byte&,Interop/Sys/FileStatus&)
at Interop+Sys.Stat (System.ReadOnlySpan`1[T] path, Interop+Sys+FileStatus& output) [0x00028] in <ff07eae8184a40a08e79049bbcb31a0e>:0
at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <ff07eae8184a40a08e79049bbcb31a0e>:0
at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath, Interop+ErrorInfo& errorInfo) [0x00000] in <ff07eae8184a40a08e79049bbcb31a0e>:0
at System.IO.FileSystem.DirectoryExists (System.ReadOnlySpan`1[T] fullPath) [0x00000] in <ff07eae8184a40a08e79049bbcb31a0e>:0
at System.IO.Directory.Exists (System.String path) [0x0001e] in <ff07eae8184a40a08e79049bbcb31a0e>:0
at FFImageLoading.Cache.SimpleDiskCache..ctor (System.String cachePath, FFImageLoading.Config.Configuration configuration) [0x00069] in <e4a68679a2a44c4694e04140bb609f9a>:0
at FFImageLoading.ImageService.CreatePlatformDiskCacheInstance (FFImageLoading.Config.Configuration configuration) [0x00075] in <e4a68679a2a44c4694e04140bb609f9a>:0
at FFImageLoading.ImageServiceBase`1[TImageContainer].InitializeIfNeeded (FFImageLoading.Config.Configuration userDefinedConfig) [0x00137] in <a159011f32534c8eb0455a9cf0bad5a7>:0
at FFImageLoading.ImageServiceBase`1[TImageContainer].Initialize () [0x00021] in <a159011f32534c8eb0455a9cf0bad5a7>:0
它与从具有 Xamarin.Android 版本 9.4x 的 VS for mac 生成的构建工作正常。所以我想知道托管的 VS2017 指向旧版本的 Xamairn.Android sdk。
我可以在管道的构建日志中找到一个版本
_ResolveXamarinAndroid工具:
正在寻找 Android NDK...
找到 Xamarin.Android 9.1.7.0
找到 Xamarin.Android 9.1.7.0
解决方案
您可以在此处获得代理上所有包含软件的链接。
对于 Azure Hosted VS2017,这是页面,您可以在那里看到这些版本:
Android SDK 平台
10(API 29):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-29
9 (API 28):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-28
8.1.0 (API 27):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-27
8.0.0 (API 26):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-26
7.1.1 (API 25):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-25
7.0 (API 24):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-24
6.0 (API 23):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-23
5.1.1 (API 22):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-22
5.0.1 (API 21):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-21
4.4.2 (API 19):位置:C:\Program Files (x86)\Android\android-sdk\platforms\android-19
推荐阅读
- azure-data-factory - 无法读取 Azure 数据工厂中设置的多选选项
- mysql - Mysql COUNT 用户不是事件参与者
- firebase - firebase deploy 是否有捆绑包大小限制?
- orientdb - Orientdb:获取记录时数据库关闭异常
- node.js - 为什么我的 npm 部署失败了?错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:在 ./package.json 中没有解决“出口”主要问题
- python - PyQt5:如何将文本从 QTextEdit 拖到 QlistView 中?
- c# - UriBuilder - 删除端口
- bash - 在 Ubuntu 中使用值编辑 Bashrc
- python - 跳过阅读文本文件python中的某些部分
- python - 使用自定义创建操作测试 DRF 模型时出现 KeyError