-
Notifications
You must be signed in to change notification settings - Fork 696
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 static method toHumanReadableAscii #1139
Comments
tested with
and got the same runtime error |
I edit this file:
it was 5.4.1 bevor, and in one post I see it will be fixed in 5.5.0, it seems to work |
here is workaround: build.gradle
|
Just an FYI: updating to Android version 5.5.1 will break the map snapshot functionality. It's probably safer to follow @krystianpach's approach. |
Running "@mapbox/react-native-mapbox-gl": "^6.1.2-beta2" with this issue, any progress fixing this? What has to be done? |
Exact same error with |
@ferrannp don't upgrade. Follow @krystianpach's approach for now. This will be resolved when we get the latest Android SDK into the RN repo. |
@krystianpach fixes issue even for react native 0.57.0 |
The workaround #1139 (comment) does fix the issue even on RN 0.57.2 :) |
I cannot get it to work with the workaround on 0.57.3. |
Workaround works for me in 0.57.3. Tried several hours ago. Check you are
doing right.
…On Thu, Oct 18, 2018, 6:21 PM GrosJob ***@***.***> wrote:
The workaround does not work on 0.57.3 either.
I really hope they will do something about it, as people seem to face this
issue for a long time now...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1139 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACPAveV6YQs-H3Ggtig19avfKXSsuxXvks5umJyLgaJpZM4S8Xgt>
.
|
Thank you for your answer, I started it back from the begenning and got it to work indeed =) |
The workaround does fix crashes, but now map is empty... Did i miss something? UPD: This was another problem #1041 |
After days of beating my head on desk, followed @krystianpach's approach. Works for RN 0.57.3 |
Same here... |
Same here. environmentpackage.json
@krystianpach Compilation can't pass, know what's going on? Thank you very much if you can help me. |
Oh my God !!! |
We did @krystianpach's approach and now we're getting a lot of crashes in production. The bug is reported here: square/okhttp#3438, and we really need to use a higher version of okhttp than 3.6.0. Any other way to solve this? Is there a better solution on the way? Edit Seems to work when forcing 3.9.1 instead. Does not recommend anyone using 3.6.0 for now |
@giantss It depends on what is registered inside the include ':mapbox-react-native-mapbox-gl'
project(':mapbox-react-native-mapbox-gl').projectDir = new File(rootProject.projectDir, '../node_modules/@mapbox/react-native-mapbox-gl/android/rctmgl') |
@FibreFoX Thanks. Yes, plugin naming is rarely seen using the
This naming is good . 😊 |
@mapbox_react-native-mapbox-gl @mapbox is followed by _ instead of -,
this worked for me. |
Hey. Are we going to see this issue fixed? This repo seems to never get updated anymore. RN repo uses very old versions of Mapbox native libraries. |
Agree, this repo is just stale :( very pity because I like mapbox but this outdated library makes me consider other solutions |
@krystianpach 's workaround works, but can someone please explain me what causes the issue? |
Thank you @krystianpach. I tried a newer version of okhttp |
For those that are still having issues after the workaround, I had multiple dependencies using okhttp so that was causing some issues. I forced the version 3.9.1 (which fixes the bug) in the project build.gradle:
|
Anyone got this working for RN 0.58? |
thanks a lot @krystianpach, it works 100% for me using React Native 0.58.4 & Mapbox 6.1.3 ❤ |
I am getting error : |
With upcoming RN 0.59 they updated to a later version of okhttp ... does anyone know if this workaround still works? |
See my previous answer. You can force any okhttp version in the project. Just use the same version that RN is using. okhttp fixed this in 3.9.1 so anything after that should be ok. |
I couldn't get it to work and it is likely my lack of knowledge of okhttp
dependency constraints within Android Studio/gradle etc.
…On Thu, 21 Feb 2019 at 16:46, Danny Althoff ***@***.***> wrote:
With upcoming RN 0.59 they updated to a later version of okhttp ... does
anyone know if this workaround still works?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1139 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKC35vuJnDKmwgSrS1d0lAy8cz5dQ5tJks5vPrFSgaJpZM4S8Xgt>
.
|
All versions after 3.9.1 throw the error. RN 0.59-rc.2 uses 3.12.1 |
What do you say about mentioning krystianpach's workaround in https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md as known issue and temp solution until it is resolved? |
finally succeeded |
what were your minsdk, targetsdk, compilesdk, etc versions, when you
succeeded?
…On Mon, 11 Mar 2019, 09:17 RagePu, ***@***.***> wrote:
finally succeeded
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1139 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKC35jjLbwNEWgj_W_7fd0S5FmcY7v_-ks5vVgMhgaJpZM4S8Xgt>
.
|
It actually completely depends on what you have in your
You could have
|
Just for referencing this, the current master-Branch does not need this hacky workaround, as a different version will be used: |
Yes, please use master, it should be considerably less painful to use on Android. |
Can confirm, works great using Thanks! |
got the following error on runtime:
java.lang.NoSuchMethodError: No static method toHumanReadableAscii(Ljava/lang/String;)Ljava/lang/String; in class Lokhttp3/internal/Util
seems to be the same like here:
mapbox/mapbox-java#726
mapbox/mapbox-gl-native#11325
but how to fix it for react native, I installed the package from github:
"@mapbox/react-native-mapbox-gl": "git://github.com/mapbox/react-native-mapbox-gl.git",
Thanks,
Ben
The text was updated successfully, but these errors were encountered: