Was able to get this working by creating a new project on the latest VS template, then add your code, and finally modifying AndroidManifest.xml to
<uses-sdk android:targetSdkVersion="29" android:minSdkVersion="21" />
(default is 31 which requires some additional changes to work)
Thanks!