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 dotnet#6067
  • Loading branch information
dellis1972 committed Jul 2, 2021
1 parent c07d60c commit 5dd18d2
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
foreach (var dex in DalvikClasses) {
Expand Down

0 comments on commit 5dd18d2

Please sign in to comment.