Error while distributing to Google Play

canmooncanmoon DEMember ✭✭

Hello,

I have a strange error while distributing my archived project to Google Play.
It says: "Signing packages failed. Could not read as a zip file".

Any ideas how to solve it?

Thanks in advance.

Answers

  • isherisher Member ✭✭

    I have the same problem. anyone got a solution?

    Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Signing packages...<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Detecting signing algorithm...<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Detected signing algorithm as : RSA<br /> Xamarin.VisualStudio.Android.Publishing.AndroidPublisher|Error|0|Signing packages failed.<br /> Ionic.Zip.ZipException: Could not read 10-25-18 7.52 AM.apkarchive\com.companyname.ScaleTester.apk as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> System.ArgumentException: An item with the same key has already been added.<br /> at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)<br /> at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Ionic.Zip.ZipFile.ReadCentralDirectory(ZipFile zf) at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) --- End of inner exception stack trace --- at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter) at Ionic.Zip.ZipFile..ctor(String fileName) --- End of inner exception stack trace --- at Ionic.Zip.ZipFile..ctor(String fileName) at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.RemoveSignature(String signedApkFilename, String unsignedApkFilename) in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 242 at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.<SignPackageAsync>d__12.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 172 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.<SignPackagesAsync>d__55.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 176 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.<SignAsync>d__54.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 131 Xamarin.VisualStudio.Publishing.DistributionManager|Error|0|Signing packages failed. Ionic.Zip.ZipException: Could not read ScaleTester.Android 10-25-18 7.52 AM.apkarchive\com.norpac.ScaleTester.apk as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)<br /> at Ionic.Zip.ZipFile.ReadCentralDirectory(ZipFile zf)<br /> at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)<br /> --- End of inner exception stack trace ---<br /> at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)<br /> at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)<br /> at Ionic.Zip.ZipFile..ctor(String fileName)<br /> --- End of inner exception stack trace ---<br /> at Ionic.Zip.ZipFile..ctor(String fileName)<br /> at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.RemoveSignature(String signedApkFilename, String unsignedApkFilename) in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 242<br /> at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.d__12.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 172<br /> --- End of stack trace from previous location where exception was thrown ---<br /> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br /> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br /> at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.d__55.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 176<br /> --- End of stack trace from previous location where exception was thrown ---<br /> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br /> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br /> at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.d__54.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 131<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Publishing project 'ScaleTester' completed with errors.<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Signing packages failed.

  • isherisher Member ✭✭

    I have the same problem. anyone got a solution?

    Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Signing packages...<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Detecting signing algorithm...<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Detected signing algorithm as : RSA<br /> Xamarin.VisualStudio.Android.Publishing.AndroidPublisher|Error|0|Signing packages failed.<br /> Ionic.Zip.ZipException: Could not read 10-25-18 7.52 AM.apkarchive\com.companyname.ScaleTester.apk as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> System.ArgumentException: An item with the same key has already been added.<br /> at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)<br /> at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Ionic.Zip.ZipFile.ReadCentralDirectory(ZipFile zf) at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) --- End of inner exception stack trace --- at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter) at Ionic.Zip.ZipFile..ctor(String fileName) --- End of inner exception stack trace --- at Ionic.Zip.ZipFile..ctor(String fileName) at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.RemoveSignature(String signedApkFilename, String unsignedApkFilename) in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 242 at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.<SignPackageAsync>d__12.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 172 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.<SignPackagesAsync>d__55.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 176 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.<SignAsync>d__54.MoveNext() in E:\A&#95;work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 131 Xamarin.VisualStudio.Publishing.DistributionManager|Error|0|Signing packages failed. Ionic.Zip.ZipException: Could not read ScaleTester.Android 10-25-18 7.52 AM.apkarchive\com.norpac.ScaleTester.apk as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)<br /> at Ionic.Zip.ZipFile.ReadCentralDirectory(ZipFile zf)<br /> at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)<br /> --- End of inner exception stack trace ---<br /> at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)<br /> at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)<br /> at Ionic.Zip.ZipFile..ctor(String fileName)<br /> --- End of inner exception stack trace ---<br /> at Ionic.Zip.ZipFile..ctor(String fileName)<br /> at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.RemoveSignature(String signedApkFilename, String unsignedApkFilename) in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 242<br /> at Xamarin.VisualStudio.Android.Services.Publishing.AndroidToolsPublishService.d__12.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\AndroidToolsPublishService.cs:line 172<br /> --- End of stack trace from previous location where exception was thrown ---<br /> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br /> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br /> at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.d__55.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 176<br /> --- End of stack trace from previous location where exception was thrown ---<br /> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br /> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br /> at Xamarin.VisualStudio.Android.Publishing.AndroidPublisher.d__54.MoveNext() in E:\A_work\5\s\src\Core\VisualStudio.Android\Services\Publishing\Channels\AndroidPublisher.cs:line 131<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Publishing project 'ScaleTester' completed with errors.<br /> Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Signing packages failed.

Sign In or Register to comment.