-
Notifications
You must be signed in to change notification settings - Fork 123
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
Map is Not Showing in Android. #114
Comments
same problem please if you find a solve told me and I will do the same. |
Use dropin ui from mapbox...then use native view manager to display it |
sorry for the asking but can you provide me a clear answer and I will be Grateful for you |
this is my example code |
Hi, E/AndroidRuntime: FATAL EXCEPTION: MapboxTelemetryExecutor another issue is ::=> E/Mbgl-Mapbox: Error occurred while initializing telemetry |
Can you see my manifest file where I can move the meta value please ? |
I think it most be outside activity i will try now |
The crash issue was solved. But still getting the blank map on Android. |
I found the solution can you share to me the way you add the <meta-data in the AndroidManifest.xml |
"
inside , after " |
Yeah you should do it like that |
Add to it the public token and the android:name should be MAPBOX_ACCESS_TOKEN |
Now app crashes 2-3 sec after launch. |
it works with me with this way but with a blue map with the Mapbox logo
but it not show the directions
try to change the build.gradle for this library inside module be copy and past all of this instead of the old
`
def DEFAULT_COMPILE_SDK_VERSION = 33 def safeExtGet(prop, fallback) { apply plugin: 'com.android.library' buildscript { repositories { dependencies { apply plugin: 'com.android.library' android { repositories { dependencies { def configureReactNativePom(def pom) { pom.project {
} afterEvaluate { project ->
} |
when I added this I got the Duplicate class com.mapbox.android.core.location.... error. How did u fixed this. i was fixed this issue, by changing the implements in the same file? is there any other option? |
In the build.gradle in the app level add this below inside dependencies
and if you have an old implementation for mapbox delete them |
And told me will you get a blue screen like mine with the mapbox logo or it will show the directions |
Duplicate class com.mapbox.android.core.location.LocationEngine issue is not got resolved. |
I fix it by this way I don’t know try to search for it |
`package com.mckenytech.swyfiodriver /**
// binding.startTripButton.setOnClickListener {
|
thats my navigationView.kt...then this is the Navigationstarter to launch the activity `package com.mckenytech.swyfiodriver import android.content.Intent internal class NavigationViewActivityStarter(reactContext: ReactApplicationContext?) :
} import com.facebook.react.ReactPackage class NavigationViewReactPackage : ReactPackage {
} import android.app.Application; import com.facebook.react.PackageList; import expo.modules.ApplicationLifecycleDispatcher; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost =
// @generated begin implementation installer - expo prebuild (DO NOT MODIFY) sync-cb41cfe4a065c99a5a8fd5b134dc14d6b4d71981 // @generated end implementation installer
}); @OverRide @OverRide @OverRide |
can I get your telegram user and In your free time, answer my question because I will officially go crazy. |
any solution for this issue ? |
React-Native Version: 0.71.4
"@homee/react-native-mapbox-navigation": "^1.1.0",
"@rnmapbox/maps": "^10.0.6".
In my project, there is a requirement to use map and turn-by-turn navigation together.
After some fixes, ios worked fine.
In android side, fixed some issues and finally got issue for
Duplicate class com.mapbox.android.core.location.LocationEngine found in modules jetified-common-23.5.0-runtime (com.mapbox.common:common:23.5.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0)
Duplicate class com.mapbox.android.core.location.LocationEngineCallback found in modules jetified-common-23.5.0-runtime (com.mapbox.common:common:23.5.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0)
Duplicate class com.mapbox.android.core.location.LocationEngineProvider found in modules jetified-common-23.5.0-runtime (com.mapbox.common:common:23.5.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0)
Duplicate class com.mapbox.android.core.location.LocationEngineRequest found in modules jetified-common-23.5.0-runtime (com.mapbox.common:common:23.5.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0)
Duplicate class com.mapbox.android.core.location.LocationEngineRequest$1 found in modules jetified-common-23.5.0-runtime (com.mapbox.common:common:23.5.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0).
This issue was fixed by changing ode_modules/@homee/react-native
-mapbox-navigation/android/build.gradle'
implementation ('com.mapbox.navigation:core:1.5.0',{
exclude group: "com.mapbox.mapboxsdk", module: "mapbox-android-core"
})
implementation ('com.mapbox.navigation:ui:1.5.0',{
exclude group: "com.mapbox.mapboxsdk", module: "mapbox-android-core"
})
.Then the duplicate issue solved.
But after this when we took the MapboxNavigation in screen, the map is not showing. Even the buttons are not working.
Is there any solution for this?
The text was updated successfully, but these errors were encountered: