dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
283 stars 147 forks source link

java.lang.UnsatisfiedLinkError in Android14 using version 5.11.0-a1 #428

Closed punto338 closed 1 month ago

punto338 commented 1 month ago

Hello, I have my app with succesful initialization and registration. In my activity I have this Java code:

image

and I get this error:

MRTCController E Couldn't load libJNI_ERR returned from JNI_OnLoad in "/data/app/~~gHq_QrxcDaKlbGt5JuYvwA==/com.myapp.app-41P7upOnZbnEjCM4y9K7Qg==/lib/arm64/libmrtc_core_jni.so"

Sin nombre

I am using these dependencies and testing in Android 14

withDJIImplementation "com.dji:dji-sdk-v5-aircraft-alpha:5.11.0-a1" withDJICompileOnly "com.dji:dji-sdk-v5-aircraft-provided-alpha:5.11.0-a1"

id 'com.android.application' version '8.5.2' apply false
id 'com.android.library' version '8.5.2' apply false

AGP Version: distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip I also tried with these configurations, but problem is the same:

  id 'com.android.application' version '7.4.2' apply false
    id 'com.android.library' version '7.4.2' apply false

distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip

how can this error be solved?

dji-dev commented 1 month ago

Agent comment from SHENRONG.LE in Zendesk ticket #118387:

Dear developers,

Hello, thank you for contacting DJI Innovation.

Will there be an error when running the official sample? Looks like it's not in the official library

I hope our solution can help you, thank you for your email, wish you a happy life!

Best Regards, Dji innovation SDK technical support
image.png

°°°

punto338 commented 1 month ago

It happens also in the sample, but the sample can livestream without issues. So may I have to initialize anything else than

com.cySdkyc.clx.Helper.install(this);

and

image

dji-dev commented 1 month ago

Agent comment from SHENRONG.LE in Zendesk ticket #118387:

Dear developers, Hello, thank you for contacting DJI Innovation.

May I ask what is the latest error reported at present? Can you provide the error information?

I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, Dji innovation SDK technical support

°°°

dji-dev commented 1 month ago

Agent comment from SHENRONG.LE in Zendesk ticket #118387:

Dear developers, Hello, thank you for contacting DJI Innovation.

You can check out this document: https://sdk-forum.dji.net/hc/zh-cn/articles/13201276673689-%E5%BC%80%E5%90%AF%E7%9B%B4%E6%92%AD%E6%8A%A5%E9%94%99Unknown%E6%80%8E%E4%B9%88%E5%8A%9E?auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Nzg4MTcsInVzZXJfaWQiOjEzMDAxMDc0NzA3MDk3LCJ0aWNrZXRfaWQiOjc0MzQzLCJjaGFubmVsX2lkIjo2MywidHlwZSI6IlNFQVJDSCIsImV4cCI6MTY3Mjk3NTQwNH0._aiRmu2ghuG3g6IgXcltUKVq_lGLV3Uu_xP0Lo7_Gm0&source=search

Thank you for your understanding and support, I wish you a happy life! Best Regards, Dji innovation SDK technical support

°°°