I have a problem with the ArcGIS SDK for Android that I have never had. There seems to be a problem with its own interface when I call this method:
ArcGISRuntime.setClientId
I have this method inside onCreate() (Application class), so it is reset 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 here is what I found in the ArcGis documentation about this method:
public static LicenseResult setClientId (String clientId)
Licens the application for basic features. This will remove the watermark present in developer mode and must be called up in the deployed application. Whenever standard licensed features are accessed, a RuntimeException is thrown.
This method must be called before installing the license using setLicense(LicenseInfo) or setLicense(String) . Please note that when accessing any standard licensed functions before calling this method, an exception will be thrown when this method is called, and the application will remain in developer mode.
Options
ClientId client id to install
Returns
LicenseResult.Invalid or LicenseResult.Valid
( https://developers.arcgis.com/android/api-reference/reference/com/esri/android/runtime/ArcGISRuntime.html )
Any ideas, thanks!
android unsatisfiedlinkerror arcgis
jbc25
source share