UnsatisfiedLinkError Arcgis 10.2.3 Android ArcGISRuntime.setClientId

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!

+2
android unsatisfiedlinkerror arcgis
source share
2 answers

UnsatisfiedLinkError usually means that an application cannot load the library it needs, even if there is a Java shell for that library. If the Java shell was also missing, your code will not compile.

Have you switched from an earlier version of ArcGIS to ArcGIS 10.2.3 in this project? If so, it is possible that the project still has its own libraries from the old version of ArcGIS that did not have the setClientId method, although the project has Java libraries from the new version of ArcGIS that have setClientId .

Assuming you are in Eclipse, right-click the project and select ArcGIS Tools> Fix Project Properties . This should replace the old native libraries with native libraries 10.2.3.

0
source share

http://maroofi.imtqy.com/ceal/ for removing a watermark from the screen

-one
source share

All Articles