Can't distribute the apk file

Hi,

After last update of Xamarin (Visual Studio 2015) I can't distribute my applicaion (same settings as before the update). When I click on the Distribute button, nothing happens. The distribution window does not appear at all. The only thing I found is the Xamarin IDE log (stored in AppData\Local\Xamarin\14) which says:

Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Archiving App Bundle 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Creating archive directory 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Creating directory '...AppData\Local\Xamarin\Mono for Android\Archives\2018-03-06\MobApp.Android 3-06-18 10.04 AM.apkarchive'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Deleting files '*.apk'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Packaging 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Creating metadata 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying icons 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Creating directory 'app-icons'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying drawable icons...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying drawable icon 'icon.png'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mipmap icons...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying apks 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying primary apk 'ATRMobile38.ATRMobile38'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdbs and mSYM files for 'MobApp.Android'...
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'ATRMobile.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'ConnectionService.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'FormsViewGroup.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'MobApp.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'MobApp.Droid.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Plugin.Geolocator.Abstractions.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Plugin.Geolocator.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Plugin.Permissions.Abstractions.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Plugin.Permissions.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Xamarin.Forms.Core.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Xamarin.Forms.Platform.Android.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|Copying mdb 'Xamarin.Forms.Xaml.dll.mdb'
Xamarin.VisualStudio.Progress.ProgressReportService|Information|0|App archive 'MobApp.Android' completed successfully.
Xamarin.VisualStudio.UnhandledExceptionsManager|Error|0|An unhandled error occurred. Details: Sequence contains no matching element

System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.Last[TSource](IEnumerable1 source, Func2 predicate)
at Xamarin.VisualStudio.Publishing.Presentation.ViewModels.AndroidDistributeViewModel..ctor(BuildViewModel buildViewModel, IDistributionManager distributionManager, IProgressReportService progressReportService, IAsyncManager asyncManager) in E:\A_work\61\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\AndroidDistributeViewModel.cs:line 234
at Xamarin.VisualStudio.Publishing.Presentation.ViewModels.ArchiveListViewModel.d__55.MoveNext() in E:\A_work\61\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\ArchiveListViewModel.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Has anyone had a problem with it?

Posts

  • MichaelGabayMichaelGabay USMember ✭✭

    I have the same issue!

  • MichaelGabayMichaelGabay USMember ✭✭

    I just opened a Bugzilla ticket and an issue on github:
    bugzilla.xamarin DOT com/show_bug.cgi?id=61251
    github DOT com/xamarin/xamarin-android/issues/1372

    I can't post the actual links so replace the 'DOT' above with a correct url.

Sign In or Register to comment.