-
Notifications
You must be signed in to change notification settings - Fork 212
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
Plugin conflict with mapbox and Google Firebase #646
Comments
Hi @aniall-8. Would you mind letting us know what device you're building to and providing a screenshot of your settings? Also, have you tried updating Unity to 2017.3? |
I'm using a samsung s8. What settings specifically do you need to see? I'l provide everything I can. I haven't tried updating unity, I was advised not to as I'm quite far into the project, do you think it would be safe to try? My project is for my final year in college and I've 2 weeks to complete it, if I badly mess up the project it could potentially wreck my whole degree..So I'm kinda scared to but I will try if it means it'll fix the problem. I've tried an older version of the mapbox sdk too and I got the same error. I noticed the new sdk has lots of AR stuff in it so I tried removing all of that from the import but it didn't help. I also tried to find that extra Build.Config file so I could remove it but couldn't locate it. As soon as I delete the Mapbox folder in the project or the Firebase one the error disappears and it builds without issue. Thanks so much for helping |
@aniall-8 if you already have ARCore in your project don't need any of the Mapbox AR stuff, you are free to delete (or not import) the AR related folders. |
@BergWerkGIS I tried that last night but the error persisted unfortunately, thanks though. Literally all I need is a simple map displaying the players position while they go on a short walk |
@aniall-8 Please make sure that your Android dev environment is up to date. I think the Unity version might be the best place to start. See here: https://developers.google.com/ar/develop/unity/quickstart
Hope this helps! |
@aniall-8 I was able to reproduce your problem. Please delete some of Android libraries in |
@BergWerkGIS That sounds promising. Did you fix the error?? Will I just delete that 'UniAndroidPermission' folder? I'm re-importing the mapbox sdk now |
@aniall-8 I didn't fix anything and you don't need to re-import the Mapbox SDK. If you look at the folder Delete the additional files so that your folder looks the same as the screenshot above. |
I deleted all the files that started with 'support' and now I can build! Thank you so much, I owe you a beer |
🍺 😄 Going to leave this issue open as a reminder to update |
Going to leave this issue open as a reminder to update |
Could you please move location of those |
Got same issue on Unity 2019.1.0f2 and Mapbox SDK with Firebase auth, and #646 (comment) works to me, thanks! |
Deleting the duplicate Android libraries, all the ones name support, allows me to build. However, the map has now become very flaky. The apk will now randomly crash on different devices. |
Sept 2019 - Cleaning up the Plugin folder as per BergWerkGIS suggest does allow us to push to Android devices, But now we are getting this error: In the latest version of the MapBox plugin we don't see |
Thanks for the quick reply 👍 Also we are using FireBase.6.4.0 with MapBox.2.1.0 |
Try to do "Play service resolver / Android / Force Resolve" and then rebuild. |
No Joy, Same Fatal Exception Also I am seeing a warning about conflicting dependencies in the Editor, |
I have now fixed this! The problem: MapBox uses depreciated support libraries, the bundled plugins cause conflicts with AndroidX.
This was working for us using MapBox.2.1.0 and FireBase.6.4.0. |
@steve6t6 Perfect solution working with MapBox2.1.0 & Firebase 6.6.0 Suffering for all day, thanks god the internet has you. |
@steve6t6 |
This helped a lot. Thanks!! Installing Mapbox with ARFoundation lead to this issue for me and I wasn't sure what to do. |
Hi Hans Schaa,
It is the full path of the target library.
I have recorded a video as tutorial.
Link: https://youtu.be/EoWLtLWcngM?t=276
I wish this could help you. Feel free to ask me any question.
Sincerely,
Sherlore
Hans Schaa <[email protected]> 於 2020年4月19日 週日 下午12:28寫道:
… Please help me, i dont understand this line
1. Run this command on:
Assets\Mapbox\Core\Plugins\Android/libtelemetry-full-release.aar
jetifier-standalone -i <path_to_file.aar> -o <path_to_file.aar>
Which things i put in <path_to_file.aar>, i have the same problem whit
Mapbox and firebase. :/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#646 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4ZPZZLRCVABXU7QYWLYVTRNJ4WLANCNFSM4EYUQ4FQ>
.
|
Thanks, It worked for me. |
Tried @steve6t6 solution but didn't work for me. What worked was deleting all files in Assets\Mapbox\Core\Plugins\Android except: This is with Mapbox SDK v2.1.1, Firebase SDK v9.2.0 and Unity 2020.3.41f1. |
I'll start off by saying that I have the ARcore sdk installed in my project.
So I've found that if I have both the mapbox sdk and any firebase sdk installed in the same project it refuses to build outright, giving me the error shown here: "Multiple dex files define Landroid/support/compat/BuildConfig". Is there a stripped down version of the sdk I can use? My project is for college and I'm really running out of time. All I need is something that shows the users location on a map while I track the distance they have walked in the session but I need to store that information in firebase. It looks to me like a plugin conflict
Thanks,
Niall
The text was updated successfully, but these errors were encountered: