Please select Into the mobile phone version | Continue to access the computer ver.
Custom app crashes on Nexus 7
1451 2 2016-5-11
Uploading and Loding Picture ...(0/1)
o(^-^)o
jordrone
lvl.1

United States
Offline

I created an Android app that works on my Galaxy Note 5. When I try using it on the Nexus 7 it fails to load. They are both running Android 6.0.1.

It looks like there is a probem loading some native code. Any ideas how to fix this?

05-11 10:27:01.462 607-6829/? D/NetlinkSocketObserver: NeighborEvent{elapsedMs=1951806, 192.168.0.1, [085B0E2D2CAF], RTM_NEWNEIGH, NUD_PROBE}
05-11 10:27:01.534 7981-7981/com.mycompany.myapp I/onLoad: loaded onLoad.cpp :JNI_OnLoad() go to end
05-11 10:27:01.534 7981-7981/com.mycompany.myapp D/SDKRelativeJNI: load lib suc
05-11 10:27:01.544 7981-7981/com.mycompany.myapp D/FPVController: try to load libstlport_shared.so
05-11 10:27:01.545 7981-7981/com.mycompany.myapp D/FPVController: try to load libdjivideo.so
05-11 10:27:01.554 7981-7981/com.mycompany.myapp E/linker: /data/app/com.mycompany.myapp-1/lib/arm/libdjivideo.so: has text relocations
05-11 10:27:01.554 7981-7981/com.mycompany.myappE/FPVController: Couldn't load lib
05-11 10:27:01.582 7981-7981/com.mycompany.myapp E/art: No implementation found for int dji.midware.natives.FPVController.native_init(java.lang.Object) (tried Java_dji_midware_natives_FPVController_native_1init and Java_dji_midware_natives_FPVController_native_1init__Ljava_lang_Object_2)
05-11 10:27:01.583 7981-7981/com.mycompany.myapp D/AndroidRuntime: Shutting down VM

2016-5-11
Use props
DJI-Adela
DJI team

Hong Kong
Offline

Hello!
May I know what App were you working on?
2016-5-12
Use props
jordrone
lvl.1

United States
Offline

I am creating an app using the DJI Android SDK. I found a bug report that was marked resolved, which helped me identify the problem. Apparently for some, but not all devices, the android SDK version needs to be 22 or under to properly load the JNI libraries.

https://github.com/dji-sdk/Mobile-SDK-Android/issues/15

When building for Android SDK 23 my custom application works on my Note5.
When building for Android SDK 23 my custom application fails to load required dji .so files on Nexus 7.
When building for Android SDK 22 my custom application works on both the Note5, and Nexus 7.
2016-5-13
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules