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

The app crashes after reinstalling the react-native-maps 0.21.0 #2155

Closed
xempie opened this issue Apr 3, 2018 · 4 comments
Closed

The app crashes after reinstalling the react-native-maps 0.21.0 #2155

xempie opened this issue Apr 3, 2018 · 4 comments

Comments

@xempie
Copy link

xempie commented Apr 3, 2018

Environment

react-native: 0.54.0
react: 16.0.0
react-native-maps: 0.21.0 

Target Platform: Android 7.0 Galaxy S6

Expected Behavior

I'm using the react-native-maps for about a year and I never had such an issue but I recently reinstalled it but my app crashes when I use component.
There is no change in my code but just I reinstalled the library and did all the steps in installation to make changes in build.gradle files and others as advised.

I used gradle 2.2.3 (I guess) but seems in this version I need to use gradle 3.0.1 or higher which I updated it as well.

I followed the steps in #2152 so I could build but when run it it crashes again.

Actual Behavior

The application crashes

@rborn
Copy link
Collaborator

rborn commented Apr 3, 2018

@xempie
Copy link
Author

xempie commented Apr 3, 2018

I found the issue
needed to use google play services base v11.0.4 instead of 10.0.1
also compile sdk version 27.0.3

implementation(project(':react-native-maps')){
            exclude group: 'com.google.android.gms', module: 'play-services-base'
            exclude group: 'com.google.android.gms', module: 'play-services-maps'
        }
        implementation 'com.google.android.gms:play-services-base:11.0.4'
        implementation 'com.google.android.gms:play-services-maps:11.0.4'
}

@xempie xempie closed this as completed Apr 4, 2018
@Xaus
Copy link

Xaus commented Apr 5, 2018

i have the same problem when turning on showsUserLocation={true} above solutions didn't work :-(
app works fine when showsUserLocation={false} but if a turn the false to true app crashs without errors

@theumairriaz
Copy link

<uses-library android:name="org.apache.http.legacy" android:required='false' />

in androidMenefest

This issue was closed.
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

4 participants