Open gsrathoreniks opened 4 years ago
Public comment from Lisa Fedane in Zendesk ticket #32364:
What ABI are you using for the virtual device? DJI's SDK does not support x86 devices, which is what Android Studio recommends for its virtual devices. You can choose another setting, but it takes a very long time to build and when your app is not connected to a DJI hardware product, there is very limited development that you can do - best practice is to just run the DJI SDK based app on a real Android device.
See Release Notes here: https://developer.dji.com/mobile-sdk/downloads/
For testing purposes, we recommended using the Android Bridge App: https://github.com/dji-sdk/Android-Bridge-App
Lisa Fedane
DJI Developer Support
inline-1163597199.png
I've tried running on armeabi-v7a x86 x86_64
I'm running Android Bridge App on an Android device that is connected to RC, on the other hand, I'm running VideoStreamDecodingSample on Android Emulator and here on the emulator it's crashing.
What ABI do you recommend me to use?
Public comment from Lisa Fedane in Zendesk ticket #32364:
We do not officially recommend that you use Android Studio emulator
Lisa Fedane DJI Developer Support
@dji-dev Yeah, I got it. But there has to be some way to get this done right? As the Android Bridge App is of no use, it was built so that one can use the SDK/VideoDecoding apps on Emulators.
Public comment from Lisa Fedane in Zendesk ticket #32364:
I think there maybe an misunderstanding - the bridge app is meant to be used with two real Android devices:
Lisa Fedane
DJI Developer Support
inline-2055421612.png
@dji-dev In the same readme file, this is also there!
Or the Android Studio emulator can be used on the PC and connect to the bridge app over WiFi
Public comment from Lisa Fedane in Zendesk ticket #32364:
Although we recommend not using the emulator the MSDK does supports the following abi filters:
// On x86 devices that run Android API 23 or above, if the application is targeted with API 23 or // above, FFmpeg lib might lead to runtime crashes or warnings. abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a'
So yes, if you get an emulator working, then it should be able to connect to the bridge app as long as both the bridge app device and emulator are in the same network.
What happened when you ran the emulator on armeabi-v7a? You got the same crash?
Lisa Fedane DJI Developer Support
Yes, It got the same crash.
Description of the issue. While launching the app on Emulator it crashes.
Steps to reproduce the bug or crash issues(It would be great if you can provide this) Run the app on Android Emulator with configurations added below
Crash logs (If you can find it, it would be very helpful)
DJI Android SDK version you are using (Like Android SDK 3.4, etc) Android SDK 4.11.1
DJI Product you are using (Like Phantom 4, Mavic Pro, etc) Mavic 2 Pro
Android system version you are using (Like Android 6.0.1, Android 5.1.1, etc) Android 7.1.1
Android device you are using (Like Samsung Galaxy Note 5, Nexus 5, etc) Pixel 2 (API 25) Android Emulator
Android Studio version you are using (Like Android Studio 2.2, etc) Android Studio 3.5.3