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

no virtual method styleUrl when using initMapbox #122

Open
ehud166 opened this issue Apr 25, 2021 · 2 comments
Open

no virtual method styleUrl when using initMapbox #122

ehud166 opened this issue Apr 25, 2021 · 2 comments

Comments

@ehud166
Copy link

ehud166 commented Apr 25, 2021

hey im using the latest dji sdk version and the latest mapbox plugin, its seems that mapbox doesn`t use any more this method but dji still initialize with this so the app crashed

the exception down below:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dji.ux.sample, PID: 19116
java.lang.NoSuchMethodError: No virtual method styleUrl(Ljava/lang/String;)Lcom/mapbox/mapboxsdk/maps/MapboxMapOptions; in class Lcom/mapbox/mapboxsdk/maps/MapboxMapOptions; or its super classes (declaration of 'com.mapbox.mapboxsdk.maps.MapboxMapOptions' appears in /data/app/~~TLs319y-Bkc2JxeW1BUQ==/com.dji.ux.sample-O5TTwe-8tc52UprtNI3VcA==/base.apk!classes3.dex)
at com.dji.mapkit.mapbox.provider.MapboxProvider.requestMapView(Unknown Source:42)
at com.dji.mapkit.core.providers.MapProvider.dispatchMapViewRequest(Unknown Source:11)
at dji.ux.widget.MapWidget.initMapboxMap(Unknown Source:29)
at com.dji.ux.sample.CompleteWidgetActivity.onCreate(CompleteWidgetActivity.java:124)
at android.app.Activity.performCreate(Activity.java:8198)
at android.app.Activity.performCreate(Activity.java:8182)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/DJICrashHandler: uncaughtException 3
E/UsbAccessoryService: final destroy() 71
E/UsbAccessoryService: final destroy() 72
E/wm220: ****resetSwitchFromWifiFlag
E/DJIUsbAccessoryReceiver: receiver destroySession
E/UsbAccessoryService: final destroy() 73
E/UsbAccessoryService: final destroy() 75
final destroy() 76

thx

@dji-dev
Copy link
Contributor

dji-dev commented Apr 26, 2021

Agent comment from William Wong in Zendesk ticket #46948:

Dear Client
Thank you for contacting DJI.

It is suggested that you using Google Map or AMap rather than Mapbox, as far as I know we won't continue supporting Mapbox.

Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support

added by Git-Zen

@ehud166
Copy link
Author

ehud166 commented Apr 26, 2021

Agent comment from William Wong in Zendesk ticket #46948:

Dear Client
Thank you for contacting DJI.

It is suggested that you using Google Map or AMap rather than Mapbox, as far as I know we won't continue supporting Mapbox.

Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support

added by Git-Zen

thanks for your answer!!

i have to use mapbox API for offline mode,
my app should present the map without internet

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

2 participants