XamarinBuildAndroidAarProguardConfigs task faild

I have Forms App that run perfectly on ios,
when i tried to run it on android device, the following error shows:

"XamarinBuildAndroidAarProguardConfigs task faild unexpectedly "

any idea?

Tagged:

Best Answer

Answers

  • misafermisafer USMember

    same error on Xamarin.Android.

  • downgrading Xamarin.Build.Download from 0.4.7 to 0.4.5 worked for me.

  • flyzzyflyzzy Member

    how can i solve this problem please give me solution, I try but its not solved

    1>------ Build started: Project: SettingsConnecter, Configuration: Debug Any CPU ------
    1>SettingsConnecter -> C:\WowonderPhone\SettingsConnecter\bin\Debug\netstandard2.0\SettingsConnecter.dll
    2>------ Build started: Project: FlyZzy, Configuration: Debug Any CPU ------
    2>C:\WowonderPhone\WoWonder\Properties\AndroidManifest.xml : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.intellisense.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.min.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\nugetexample.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: The "XamarinBuildAndroidAarProguardConfigs" task failed unexpectedly.
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: System.IO.InvalidDataException: Central Directory corrupt. ---> System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018:
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: --- End of inner exception stack trace ---
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Xamarin.Build.Download.XamarinBuildAndroidAarProguardConfigs.Execute()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  • flyzzyflyzzy Member

    how can i solve this problem please give me solution, I try but its not solved

    1>------ Build started: Project: SettingsConnecter, Configuration: Debug Any CPU ------
    1>SettingsConnecter -> C:\WowonderPhone\SettingsConnecter\bin\Debug\netstandard2.0\SettingsConnecter.dll
    2>------ Build started: Project: FlyZzy, Configuration: Debug Any CPU ------
    2>C:\WowonderPhone\WoWonder\Properties\AndroidManifest.xml : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.intellisense.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\jquery-2.1.1.min.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\WoWonder\Scripts\nugetexample.js : warning XA0101: @(Content) build action is not supported
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: The "XamarinBuildAndroidAarProguardConfigs" task failed unexpectedly.
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: System.IO.InvalidDataException: Central Directory corrupt. ---> System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018:
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: --- End of inner exception stack trace ---
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Xamarin.Build.Download.XamarinBuildAndroidAarProguardConfigs.Execute()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    2>C:\WowonderPhone\packages\Xamarin.Build.Download.0.4.11\build\Xamarin.Build.Download.targets(137,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Sign In or Register to comment.