Please select Into the mobile phone version | Continue to access the computer ver.
Need help with Sample Application
824 2 2024-6-14
Uploading and Loding Picture ...(0/1)
o(^-^)o
csongor.varady
lvl.1
Romania
Offline

Hi! I'm trying to just run the basic MobileSDK tutorial.After following the steps, the project builds (with errors, if I run it from command line, but works from Android Studio Build) and deploys to the phone. When I upload the apk to my phone, I get the error:

```
No implementation found for void com.secneo.sdk.Helper.i() (tried Java_com_secneo_sdk_Helper_i and Java_com_secneo_sdk_Helper_i__) - is the library loaded, e.g. System.loadLibrary?
      FATAL EXCEPTION: main
      Process: com.example.myapplication3, PID: 21773
      java.lang.NoClassDefFoundError: Failed resolution of: Ldji/v5/manager/interfaces/SDKManagerCallback;

```

I didn't find anything online about this error, only another post on stackoverflow, which is having the same problem, but couldn't solve it.
Any help with this would be much appreciated. If needed I can share the build.gradle, AndroidManifest or whichever file




2024-6-14
Use props
csongor.varady
lvl.1
Romania
Offline

If anyone is looking for the solution for this, check out the sample project from the DJI tutorial ( https://developer.dji.com/doc/mo ... art/run-sample.html ).In that the key to make this work is that the SDK is imported with a Lazy loading scheme (androidx.lifecycle.ViewModelLazy). The error arrises because the SDK is imported too early in the execution, and this doesn't work with `com.secneo.sdk.Helper.install`.

Copy the import from the sample project, and it should work.
2024-6-17
Use props
djiuser_vNF15IyaaWuY
lvl.1
Canada
Offline

Thanks for the post, HUGE help.

For anyone else, I ended up copying the:
DJIAircraftApplication.kt
DJIApplication
GlobelVM.kt
MSDKManagerVM.kt

files into my project and linking my android manifest application to DJIAircraftApplication. I have spent a dumb amount of time on this.
2024-10-21
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules