xamarin.ios - Xamarin.Forms Unhandled Exception -


i'm trying carouselview on project. when run project,i error.

here xaml code;

<?xml version="1.0" encoding="utf-8"?> <base:hoteldetailpagexaml xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:class="xamarincrm.pages.hotels.hoteldetailpage" xmlns:statics="clr-namespace:xamarincrm.statics" xmlns:base="clr-namespace:xamarincrm.pages.hotels" xmlns:hotelviews="clr-namespace:xamarincrm.views.hotels" xmlns:i18n="clr-namespace:xamarincrm.localization" xmlns:cv="clr-namespace:xamarin.forms;assembly=xamarin.forms.carouselview"     title="{binding hotel.name}">   <base:hoteldetailpagexaml.content>         <stacklayout spacing="0">                     <cv:carouselview itemssource="{binding hotel.hotelimages}">             <cv:carouselview.itemtemplate>               <datatemplate>                 <stacklayout heightrequest="200">                   <image heightrequest="200" aspect="aspectfill" source="{binding fullpath}"/>                 </stacklayout>               </datatemplate>             </cv:carouselview.itemtemplate>           </cv:carouselview>   </stacklayout>   </base:hoteldetailpagexaml.content> </base:hoteldetailpagexaml> 

and here called json service;

 public async task<ienumerable<hotelmodel>> gethotelsasync(bool includeleads = false)         {             string path = "my service url";             httpclient client = new httpclient();             var task = await client.getasync(path);             var jsonstring = await task.content.readasstringasync();             list<hotelmodel> hotellist = new list<hotelmodel>();             list<hotelimagemodel> hotelimagelist = new list<hotelimagemodel>();             dynamic json = jsonconvert.deserializeobject(jsonstring);                             (int j = 0; j < 10; j++)                         {                             hotelimagemodel hotelimage = new hotelimagemodel();                                 hotelimage.fullpath = json["data"][i]["hotelimages"][j]["fullpath"].value;                                 hotel.hotelimages.add(hotelimage);                         }                     } 

i hotel index number of , j hotels' image index number

in forum of xamarin report error bug same error. 21 of june

https://forums.xamarin.com/discussion/69483/why-does-carouselview-crash-on-android

what version of xamarin have installed? try install latest version of xamarin?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -