I'm following the ESRI tutorial on how to display a MMPK file. I've got the program running on a physical device, and it brings up a mapview, but there's nothing in it. The code itself is quite short:
string pathToMobileMapPackage = System.IO.Path.Combine(Environment.CurrentDirectory, @MahouRivieraTrails.mmpk);MobileMapPackage mahouRivieraTrails_MobileMapPackage = new MobileMapPackage(pathToMobileMapPackage);await mahouRivieraTrails_MobileMapPackage.LoadAsync();this.Map = mahouRivieraTrails_MobileMapPackage.Maps.FirstOrDefault();
But when I run it I get this error:
Thread started: #5
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.Specialized.dll
Loaded assembly:/data/data/com.companyname.displayamap/files/.__override__/System.Collections.Specialized.dll [External]
ArcGIS Maps SDK: Load Error: MobileMapPackage
System.IO.FileNotFoundException
File not found: /MahouRivieraTrails.mmpk
The instructions are to just drag the mmpk file into the project, and set Build Action to Compile, I've done that.
I do see the file listed in a file, PublishOutputs.txt, which I presume lists what gets output to the APK.
But, I unzipped the APK file and there is no file with a .mmpk in its name.
I do see a message in the log, @(Content) build action is not supported (XA0101)
Any ideas what I'm doing wrong?
Thanks so much for any info...