Start a new topic

Can`t connect to a kinvey collection

So, I have a collection named "cars" on Kinvey backend. And I can`t connect to it from my Xamarin.Android Kinvey project code. It's throwing NullReference Exception: Object instance not set to an instance of the object.

my collection on the backend


here is my entity in cs

using Newtonsoft.Json;
using Kinvey;

namespace DaysTaxi.Droid
    public class Car : Entity
        public Car() { }

        public string Name { get; set; }

        public string PhotoID { get; set; }

        public int Class { get; set; }

        public KinveyMetaData Meta { get; set; }

        public KinveyMetaData acl { get; set; }

        public int id { get; set; }



here is my code


 DataStore<Car> cars = DataStore<Car>.Collection("cars", DataStoreType.SYNC);

 and on this line appears a  NullReference Exception

Can anyone help, please? What can be a reason of the problem?

And yes, sorry for my English.


Please take a look at our sample app and see if it helps:





Pranav J,

Thank you, but i have seen it before and hadn`t found an answer there.

When i built it, it was working  and i could save/fetch data successfully.

Login or Signup to post a comment