Skip to content

Commit

Permalink
See if we can fix Rando ANDZA0000: Unable to open app.apk as a zip ar…
Browse files Browse the repository at this point in the history
…chive

Context #6067
  • Loading branch information
dellis1972 committed Aug 5, 2021
1 parent 11ddd8c commit dda2b16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Xamarin.Android.Build.Tasks/Tasks/BuildApk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ void ExecuteWithAbi (string [] supportedAbis, string apkInputPath, string apkOut
apk.Archive.AddStream (ms, entryName, compressionMethod: entry.CompressionMethod);
}
}
apk.Flush ();
}
apk.FixupWindowsPathSeparators ((a, b) => Log.LogDebugMessage ($"Fixing up malformed entry `{a}` -> `{b}`"));
// this call should be redundant now
//apk.FixupWindowsPathSeparators ((a, b) => Log.LogDebugMessage ($"Fixing up malformed entry `{a}` -> `{b}`"));

// Add classes.dx
CompressionMethod dexCompressionMethod = GetCompressionMethod (".dex");
Expand Down

0 comments on commit dda2b16

Please sign in to comment.