Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start the app in AVD [com.dji.FPVDem: No implementation found for java.lang.Object[] com.secneo.sdk.Helper.makeInMemoryDexElements] #35

Open
chenerlich opened this issue Jan 11, 2019 · 0 comments

Comments

@chenerlich
Copy link

chenerlich commented Jan 11, 2019

Trying to run the FPVDemo on Samsung S7 virtual device (with API 28).
DJI SDK 4.8.1.
Tried on APIs 22, 28, 25
DJI Mavic AIR
Samsung S7
Android Studio 3.2.1
image

App configuration:

    compileSdkVersion 26
    buildToolsVersion '28.0.3'
...
        minSdkVersion 19
        targetSdkVersion 26

Error:

I/zygote: Background concurrent copying GC freed 53(37KB) AllocSpace objects, 0(0B) LOS objects, 46% free, 6MB/12MB, paused 40.461ms total 62.732ms
V/sdk: DexInstall end
I/InstantRun: starting instant run server: is main process
E/linker: "/data/app/com.dji.FPVDemo-cadEFrFcw-riA0rfxKrxAA==/lib/x86/libffmpeg.so" has text relocations
W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.dji.FPVDemo-cadEFrFcw-riA0rfxKrxAA==/lib/x86/libffmpeg.so" has text relocations
W/System.err:     at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
        at java.lang.System.loadLibrary(System.java:1657)
        at dji.midware.natives.SDKRelativeJNI.<clinit>(Unknown Source:2)
        at dji.midware.natives.SDKRelativeJNI.native_getXXXX(Native Method)
        at com.dji.g.a.a.c.b(Unknown Source:22)
        at dji.midware.d.b(Unknown Source:2)
        at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source:2)
        at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source:0)
        at com.dji.FPVDemo.FPVDemoApplication.onCreate(FPVDemoApplication.java:150)
        at com.dji.FPVDemo.MApplication.onCreate(MApplication.java:25)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
        at android.app.ActivityThread.-wrap1(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
        at android.os.Handler.dispatchMessage(Handler.java:105)
W/System.err:     at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
D/SDKRelativeJNI: Couldn't load lib
E/zygote: 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)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.dji.FPVDemo, PID: 12282
    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.g.a.a.c.b(Unknown Source:22)
        at dji.midware.d.b(Unknown Source:2)
        at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source:2)
        at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source:0)
        at com.dji.FPVDemo.FPVDemoApplication.onCreate(FPVDemoApplication.java:150)
        at com.dji.FPVDemo.MApplication.onCreate(MApplication.java:25)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
        at android.app.ActivityThread.-wrap1(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
I/Process: Sending signal. PID: 12282 SIG: 9
Disconnected from the target VM, address: 'localhost:8677', transport: 'socket'

Tried to rerun with sdk 22 as some answer suggested, without any luck (Too many errors with the project)
I would appreciate help.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant