gpt4 book ai didi

android - "XamarinBuildAndroidAarProguardConfigs"任务意外失败

转载 作者:太空狗 更新时间:2023-10-29 13:07:50 25 4
gpt4 key购买 nike

我正在尝试使用 xamarin.android 实现 firebase,但在下载了一些 nugat 包后,我开始遇到不同的错误,最新的错误如下:

Severity    Code    Description Project File    Line    Suppression State
Error The "XamarinBuildAndroidAarProguardConfigs" task failed unexpectedly.
System.IO.InvalidDataException: Central Directory corrupt. ---> System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
--- End of inner exception stack trace ---
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
at Xamarin.Build.Download.XamarinBuildAndroidAarProguardConfigs.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() FireBaseSolution

android 目标框架:25
一些已安装的引用:

Xamarin.Android.Support.v4
Xamarin.Android.Support.v7.AppCompat
Xamarin.GooglePlayServices.Base
Xamarin.Firebase.Messaging

请指导我如何解决它。谢谢

最佳答案

对我来说,解决方案是将版本 nuget 包“Xamarin.Build.Download”降级到版本 4.4

关于android - "XamarinBuildAndroidAarProguardConfigs"任务意外失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45345953/

25 4 0
文章推荐: android - 如何继承android xml中的字段?
文章推荐: html - 如何让
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com