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

Crash issues while integrating Navigation and Vision in Single App using Kotlin #284

Open
deepaA9299 opened this issue Apr 24, 2023 · 0 comments

Comments

@deepaA9299
Copy link

Application getting crashed when I try to exclude some Mapbox-core packages in order to resolve duplicate classes issue.

build.gradle

// Maps Navigation dependencies
implementation "com.mapbox.navigation:ui-dropin:2.11.0"
implementation "com.mapbox.navigation:android:2.11.0"
implementation "com.mapbox.mapboxsdk:mapbox-android-navigation:0.42.6", {
exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
}

//Search SDK integration
implementation ("com.mapbox.search:autofill:1.0.0-beta.45")
implementation ("com.mapbox.search:discover:1.0.0-beta.45")
implementation ("com.mapbox.search:offline:1.0.0-beta.45")
implementation ("com.mapbox.search:mapbox-search-android:1.0.0-beta.45")
implementation ("com.mapbox.search:mapbox-search-android-ui:1.0.0-beta.45")

// Vision SDk Integration
implementation "com.mapbox.vision:mapbox-android-vision:0.13.0", {
    exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
}
implementation "com.mapbox.vision:mapbox-android-vision-ar:0.13.0", {
    exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
}
implementation "com.mapbox.vision:mapbox-android-vision-safety:0.13.0", {
    exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
}

when I try to add vision libraries like this its crashing with following error:

E/MapboxTelemetry: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mapbox/android/core/MapboxSdkInfoForUserAgentGenerator;
E/libc++abi: terminating with uncaught exception of type jni::PendingJavaException
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 22560 (Thread-3), pid 22319 (e.ar_navigation)

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