I'm working on my first Xamarin.Forms app, a PCL. I just implemented a Sqlite database and used Chapter 7, including its example code, of Dan Hermes' "Xamarin Mobile Application Development: Cross-Platform C# and Xamarin.Forms Fundamentals" book to guide me. The implementation actually looks to be the same as in the Xamarin.Forms "Todo" application, available on Github, with a Database class in each platform target that implements a DbConnect method, which itself basically builds the db path for each platform and creates a new SQLiteConnection with the path.
However, I'm getting a NullReferenceException in Android (I've tried WinPhone 8.1 so far and that works fine), on this line in the PCL's Database class (just a locking object, db instance variable, and constructor):
database = DependencyService.Get<IDatabase>().DbConnect();
I hit F11 to step-in and it told me I didn't have the DependencyService.cs source file. I happened to see the "DependencyService.cs Deep Dive" thread and now that I have the .cs file downloaded, whenever I hit F11 now it just says "Missing Frame Source" or whatever and I can't pick the file.
So. Any ideas on what's going wrong? Any way I can step into the Xamarin.Forms code now that I have the DependencyService.cs file?
Thank you so much for any help.