dji-sdk / Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
Other
152 stars 110 forks source link

Facing issue while running sample application #116

Closed abhishekkulhary closed 3 years ago

abhishekkulhary commented 3 years ago

I was trying out the sample application but was facing an issue. After importing the application, I edited API keys for DJI and maps in the android manifest. And excluded the AMap API in build Gradle by uncommenting the following line: exclude group: 'com.amap.api'

After running the application crashes, I am getting the below logs. Please help with the issue. Thank you in advance.

Logs:

2021-03-04 14:07:01.710 6273-6273/? I/m.dji.ux.sampl: Not late-enabling -Xcheck:jni (already on) 2021-03-04 14:07:01.731 6273-6273/? I/m.dji.ux.sampl: Unquickening 12 vdex files! 2021-03-04 14:07:01.733 6273-6273/? W/m.dji.ux.sampl: Unexpected CPU variant for X86 using defaults: x86 2021-03-04 14:07:01.769 6273-6273/com.dji.ux.sample D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar 2021-03-04 14:07:01.771 6273-6273/com.dji.ux.sample I/m.dji.ux.sampl: The ClassLoaderContext is a special shared library. 2021-03-04 14:07:01.776 6273-6273/com.dji.ux.sample I/m.dji.ux.sampl: The ClassLoaderContext is a special shared library. 2021-03-04 14:07:02.120 6273-6273/com.dji.ux.sample D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2021-03-04 14:07:02.120 6273-6273/com.dji.ux.sample D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2021-03-04 14:07:02.376 6273-6273/com.dji.ux.sample A/libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xf33c8000 in tid 6273 (m.dji.ux.sample), pid 6273 (m.dji.ux.sample) 2021-03-04 14:07:02.370 6273-6273/com.dji.ux.sample W/m.dji.ux.sample: type=1400 audit(0.0:130): avc: denied { execmod } for path="/apex/com.android.runtime/lib/bionic/libc.so" dev="loop19" ino=17 scontext=u:r:untrusted_app_29:s0:c156,c256,c512,c768 tcontext=u:object_r:system_lib_file:s0 tclass=file permissive=0 app=com.dji.ux.sample

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #44563:

Dear Customer,

Thank you for contacting DJI. The SDK doesn't support the X86 architecture devices or emulator, please test it with an arm real device.

Thanks,

Luce Luo DJI Developer Support

abhishekkulhary commented 3 years ago

Thanks for the info