I'm having a problem with Arcgis SDK for Android which I've never had before. It seems an issue with its native interface when I call this method:
ArcGISRuntime.setClientId
I have this method inside onCreate()
(Application class), so it crashes at the beginning
This is the stack trace:
java.lang.UnsatisfiedLinkError: nativeIsClientIdValid
at com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid(Native Method)
at com.esri.core.runtime.LicenseImpl.b(Unknown Source)
at com.esri.android.runtime.ArcGISRuntime$License.b(Unknown Source)
at com.esri.android.runtime.ArcGISRuntime$License.a(Unknown Source)
at com.esri.android.runtime.ArcGISRuntime.setClientId(Unknown Source)
at com.pkg.manager.AppManager.onCreate(AppManager.java:262)
And this is what I found on Arcgis documentation about this method:
public static LicenseResult setClientId (String clientId)
License an application for basic functionality. This will remove the watermark present in developer mode and must be called in a deployed application. Whenever standard licensed functionality is accessed, a RuntimeException will be thrown.
This method must be called before setting a license with either setLicense(LicenseInfo)
or setLicense(String)
. Note that if any standard licensed functionality is accessed before calling this method, an exception will be thrown when this method is called and the application will remain in developer mode.
Parameters
clientId. client ID to set
Returns
LicenseResult.Invalid or LicenseResult.Valid
Any ideas, thank you!