import com.secneo.sdk.Helper; is no longer available in the android-sdk-v5-uxsdk
I follow the instructions from https://sdk-forum.dji.net/hc/en-us/articles/9168348360345-Chapter-3-Integrate-the-SDK-into-your-project. When I attempt to build I get that the class com.secneo.sdk.Helper is not found. The class is needed because I have my own call back registration handler and logic in my application. In other words, I use the uxsdk as a library, so the classes need to be unencrypted.
This worked in prior 5.7 version. I need the newer version because of having "fd" file descriptor crashes in 5.7 video streaming. Please help!
The version of sdk is
implementation 'com.dji:dji-sdk-v5-aircraft:5.15.0'
implementation "com.dji:dji-sdk-v5-networkImp:5.15.0"
// TODO need this for com.secneo.sdk.Helper but then cannot have the library within the app and no aar is provided
//implementation 'com.dji:dji-uxsdk-v5:5.15.0' but it gets confused
compileOnly "com.dji:dji-sdk-v5-aircraft-provided:5.15.0"
com.cySdkyc.clx.Helper.install(this) works. I found it in a Medium article.
Agent comment from YIGUI LIU in Zendesk ticket #147635:
Dear Developer,
Yes, starting from MSDK version 5.10.0, "com.secneo.sdk.Helper.install(this)" in MSDK initialization has been modified to "com.cySdkyc.clx.Helper.install(this); otherwise, MSDK will not run. This can be found in the MSDK release notes: https://developer.dji.com/doc/mobile-sdk-tutorial/en/
In addition, you need to check the "Always install with package manager" option on the Run/Debug Configurations page in Android Studio, then clean the project and rerun it. Otherwise, the installation of com.cySdkyc.clx.Helper.install(this) may fail.
Best Regards,
DJI Innovations SDK Technical Support Team
°°°
Thank you for your reply. I now have this error. Will you please help!
E/com.tbolt.main: No implementation found for void com.cySdkyc.clx.Helper.i() (tried Java_com_cySdkyc_clx_Helper_i and Java_com_cySdkyc_clx_Helper_i__) D/MApplication: Application onCreate called D/OpenGLRenderer: RenderThread::requireGlContext() I/AdrenoGLES-0: QUALCOMM build : 5a00bbd4b7, I0f5aa60515 Build Date : 01/16/23 OpenGL ES Shader Compiler Version: EV031.36.08.13 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : I/AdrenoGLES-0: Build Config : S P 12.1.1 AArch64 I/AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so I/AdrenoGLES-0: Driver Version : 0615.0 I/AdrenoGLES-0: PFP: 0x01730155, ME: 0x00000000 W/Adreno-AppProfiles: Could not find QSPM HAL service. Skipping adreno profile processing. D/OpenGLRenderer: RenderThread::setGrContext() D/AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found W/com.tbolt.main: Suspending all threads took: 40.713ms I/DecorView: [INFO] isPopOver=false config=true I/DecorView: updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@ab12d16[] D/DecorView: setCaptionType = 0, this = DecorView@ab12d16[] I/DecorView: getCurrentDensityDpi: from real metrics. densityDpi=480 msg=resources_loaded I/DecorView: setWindowBackground: isPopOver=false color=fffafafa d=android.graphics.drawable.ColorDrawable@f92d084 W/com.tbolt.main: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed) W/com.tbolt.main: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed) D/CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10274; state: ENABLED A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6bc09bd0 in tid 27548 (com.tbolt.main), pid 27548 (com.tbolt.main)
My
Agent comment from YIGUI LIU in Zendesk ticket #147635:
Dear Developer,
- Check if the SDK dependencies are correctly imported.
- You can refer to the SDK demo to check whether
com.cySdkyc.clx.Helper.install(this)is called in the application. Do not call any MSDK-related interfaces before invoking it. - Switch the execution of
SDKManager.getInstance().initto an activity or to the main thread. - On the Run/Debug Configurations page in Android Studio, check the "Always install with package manager" option (please refer to the image below), then clean the project and rerun it. Otherwise, it may cause the installation via
com.cySdkyc.clx.Helper.install(this)to fail.
please refer to the image:https://pan-sec.djicorp.com/s/7eq5mHiP5brzRMx
Best Regards,
DJI Innovations SDK Technical Support Team
°°°