The preview for Android doesn't work

Hello everyone,

I am new to Xamarin Studio.

Have created a project and preview works fine for iOS, but not working with Android. Always get an exception. it seems the previewer doesn't recognize listview...

have no idea what should I do...

Posts

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    @HongjuanLin

    Do you mean Xamarin Forms Previewer?

  • HongjuanLinHongjuanLin USMember
    edited March 2017

    @JGoldberger Yes, exactly.

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai
    edited March 2017

    @HongjuanLin

    OK, so I tried to reproduce this issue with this sample which has a ListView in XAML:
    https://github.com/jamesmontemagno/Xamarin.Forms-Monkeys

    and the XAML rendered in the previewer without error. What is the exception your are getting? For future reference when posting a question like this where you say "I got an exception" it really helps to post the text and stack trace of the exception.

    Anyway, Can you test with that sample? this way we can see if it is perhaps an issue with your code rather than an issue with the previewer. Also you may want to look over this post about supplying design time data:
    http://motzcod.es/post/143702671962/xamarinforms-xaml-previewer-design-time-data

    The sample app linked above is the one talked about in the blog post and the code in the blog post is already in the app sample.

  • HongjuanLinHongjuanLin USMember

    @JonGoldberger.4124

    Hi Jon Goldberger

    thank you veryyyy much for your help! will try it out this evening. thank you again for your patience and help, really appreciate!

    Cheers
    Lin

Sign In or Register to comment.