Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

UnsatisfiedLinkError: No implementation found for byte[] dji.midware.natives.SDKRelativeJNI.native_getXXX (...)

Open aleksandrawy opened this issue 6 years ago • 4 comments
trafficstars

Description: After updating android sdk to version 28 and DJI sdk from version 4.6 to 4.9 there is a problem with app working on any emulator. During DJI sdk registering app crashes.

DJI sdk: 4.9 Android sdk (compileSdkVersion): 28 Android system version: every Android device: emulator

Crash stacktrace:

java.lang.UnsatisfiedLinkError: No implementation found for byte[] dji.midware.natives.SDKRelativeJNI.native_getXXXX(java.lang.String) (tried Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX and Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX__Ljava_lang_String_2) at dji.midware.natives.SDKRelativeJNI.native_getXXXX(Native Method) at com.dji.h.a.a.c.b(Unknown Source) at dji.midware.e.b(Unknown Source) at dji.sdk.sdkmanager.DJISDKManager.(Unknown Source) at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source) at PACKAGE_NAME.dji.DJIProvider$registerTask$1.run(DJIProvider.kt:39) at PACKAGE_NAME.dji.DJIProvider.startSDKRegistration(DJIProvider.kt:127) at PACKAGE_NAME.MainActivity$registerDJISDK$1.onExecutorReady(MainActivity.kt:595) at PACKAGE_NAME..helpers.ui.SimpleDelayedExecutor$executeDelayed$1.run(DelayedExecutor.kt:20) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

aleksandrawy avatar Feb 07 '19 14:02 aleksandrawy

Hi, there are two options for you to ask for help:

  1. Post your issues on StackOverflow: https://stackoverflow.com/questions/tagged/dji-sdk, the community can help you.

  2. Report your issues to [email protected], as it's our official channel for developers to request DJI Developer Support now.

For DJI Developer Support, we have the following three tiers:

  • Standard

This free support is available to anyone reaching out to [email protected]. There is no guarantee for response time.

  • Preferred

    This support comes with Pro membership for 99 USD per year. You can purchase it on DJI Developer Website. These requests have priority over Standard ones. Starting today, Preferred questions will be replied to within 2 to 5 business days (Monday – Friday).

  • Premium

    This one-time ticket is considered high-priority and costs 499 USD per issue. You can purchase it on DJI Developer Website after you become the Pro membership developer. Starting today, Premium questions will be replied to within 1 business day (Monday – Friday). This may include communication with DJI SDK engineers, but will not involve face-to-face interaction. Time limitations apply, and please keep in mind that one question is permitted per ticket. We will do our best to resolve your issue, but there some situations demand deeper engineering efforts.

dji-sdk[bot] avatar Feb 07 '19 14:02 dji-sdk[bot]

  1. In Android Studio, when you create a new Virtual Device, when you get to Select a system image go to the Other images tab. From there select any of the 'arm' images and use that. The emulator will be extremely slow with this option, and might not run at all if your computer is old or slow.
  2. Connect a real Android device to your computer with debugging mode enabled and run the demo on that.
  3. In your build.gradle file, set compileSdkVersion and targetSdkVersion to 22 which is the latest version in which DJI's provided libffmpeg.so file will load. This is the worst option though, as Google doesn't allow anybody to publish apps with SDK versions this low anymore. The version must be 26 or above now: https://support.google.com/googleplay/android-developer/answer/113469#targetsdk

SChalice avatar Mar 13 '19 03:03 SChalice

@SChalice App working on Android Device but not on Emulator! @aleksandrawy Are you still facing the issue or this issue of yours is solved now?

gsrathoreniks avatar Feb 25 '20 15:02 gsrathoreniks

Same issue here. You should upgrade the SDK so that we can use it with the latest version of Android.

ugiordan avatar Apr 09 '20 15:04 ugiordan