如何知道在Azure托管VS2017代理中Xamarin Android项目引用的是Xamarin.Android sdk版本?

问题描述 投票:0回答:1

我有使用Azure Hosted VS2017构建其包的Xamarin Android项目。我已经更新了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 

它与从VS for Mac(具有Xamarin.Android版本9.4x的版本)生成的版本正常工作。因此,我想知道托管的VS2017是否指向Xamairn.Android sdk的旧版本。

我可以从管道中的构建日志中找到一个版本

__ ResolveXamarinAndroidTools:

正在寻找Android NDK ...

找到Xamarin.Android 9.1.7.0

找到Xamarin.Android 9.1.7.0

xamarin xamarin.android azure-devops azure-pipelines azure-pipelines-build-task
1个回答
0
投票

您具有here链接到代理上所有随附的软件。

对于Azure托管的VS2017,这是page,您可以在其中看到以下版本:

[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

© www.soinside.com 2019 - 2024. All rights reserved.