1

我在调用时遇到应用程序在启动时崩溃的问题ArcGISRuntime.setClientId(getString(R.string.ArcGISClientId));

它导致异常:

    java.lang.UnsatisfiedLinkError: No implementation found for boolean com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid(java.lang.String) (tried Java_com_esri_core_runtime_LicenseImpl_nativeIsClientIdValid and Java_com_esri_core_runtime_LicenseImpl_nativeIsClientIdValid__Ljava_lang_String_2)
at com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid(Native Method)
at com.esri.core.runtime.LicenseImpl.b(SourceFile:103)
at com.esri.android.runtime.ArcGISRuntime$License.b(SourceFile:133)
at com.esri.android.runtime.ArcGISRuntime$License.a(SourceFile:72)
at com.esri.android.runtime.ArcGISRuntime.setClientId(SourceFile:51)
at com.ihs.connect.App.configureArcGIS(App.java:89)
at com.ihs.connect.App.onCreate(App.java:82)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1036)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6316)
at android.app.ActivityThread.access$1800(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

受影响的设备运行Android 6.0 / 6.0.1。但它不会出现在所有设备上。他们之中有一些是:

  • SM-G920F(三星 Galaxy S6)
  • SC-02H(三星 Galaxy S7 Edge)
  • SM-N920C(三星 Galaxy Note 5)
  • ASUS_Z010D (华硕 ZenFone Max)
  • Nexus 5X(LG Nexus 5X)
  • LG-H815 (LG G4)
  • E5823(索尼 Xperia Z5 Compact)
  • SAMSUNG-SM-G935A(三星 Galaxy S7 Edge)
  • SM-N9208 (三星 Galaxy Note5 Duos)
  • SGP771(索尼 Xperia Tablet Z4)
  • 0PJA2 (HTC One M9)

我试过在有和没有 ProGuard 的情况下运行它,但仍然没有效果。有任何想法吗?

4

0 回答 0