Getting system.nullreference exception pointing to android project's mainactivity.cs file

sameerpurohitsameerpurohit USMember ✭✭
edited August 2017 in Xamarin.Forms

I am getting a system.nullreference exception while running the android application in xamarin .
It is pointing towards the "bundle" thing in the mainactivity.cs filein the android project.
I am not much experienced in xamarin development and would like to know the reason of this error and ways to overcome the same.
Pls help

Answers

  • N_BauaN_Baua INMember ✭✭✭✭✭

    Hi @sameerpurohit

    Check your (PCL) - project is referenced correctly.

    Try removing - re- referencing if it still shows error.
    Also make sure, your project compiles well before you run the android emulator.

    Hope it helps.

    Regards,
    N Baua

  • sameerpurohitsameerpurohit USMember ✭✭

    I'd like you to elaborate.
    I mean how this error has a relation to my referencing in PCL .
    Please explain.

Sign In or Register to comment.