Hello everyone,
I'm having a problem regarding the use of a custom Network Dataset.
So I built a Network Dataset using ArcCatalog and ArcMap 10.7.1 and exported as ArcGIS Runtime Content on ArcMap as a .geodatabase file. The settings chose for the exported file were: "Do not include feature and tabular data"; "Do not include a basemap"; "Include network data from the current map"; and "Do not include a locator".
I then put this file on an Android emulator device and tested the find-closest-facility-to-multiple-incidents-service sample from ESRI's Github loading my geodatabase file through its path and using some custom example layers as Facilities and Incidents. The code I used is in the attachment.
I tried to run the app and whenever I pressed the button to solve the ClosestFacilityTask I had an error with code 18. After checking the Platform Codes of the ArcGIS Runtime for Android this code was described as an 'Internal Error Exception' under the 'ArcGIS Runtime errors' category.
Thinking that this error might be due to a misconfiguration of my Network Dataset or possibly it wasn't really prepared to be used on the ArcGIS Runtime, I proceeded to search for an alternative Network Dataset geodatabase that could be used for testing. I found this one from ESRI (only the file with .geodatabase extension) and tried to test on my app. Unfortunately, I got exactly the same error with code 18.
I tried to figure out the reason for this error and for the failure of the ClosestFacilityTask but couldn't find one.
I will provide the code from the MainActivity Java class, as well as my geodatabase in hopes that someone could provide some valuable insight as to why I get this error.
Thank you very much for the support, It is strongly appreciated.