-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Failed resolution of com.google.android.gms.maps.GoogleMapOptions #818
Comments
I had the same issue as you. I managed to get the app running but now I get a message on the map screen that I need to update Google Play services. To fix the compilation error I have added:
to app.gradle. This seems a bit hacky and doesn't solve the map issue but at least you should be able to compile your app. EDIT: If you get an error about Dex exceeding max size of 65k add:
to your dependencies and:
under defaultConfig in your app.gradle |
Had to do the same thing, thanks @DownMoney |
I ran into the same thing, but the above fix didn't work for me until I updated the following values in android/app/build.gradle, if it helps anyone (I just followed the pattern in examples/android):
|
Posting this here because I kept coming back from this page. I found the final solution, that both compiled and restored maps working here: first follow @DownMoney's comments
instead of compile 'com.google.android.gms:play-services-maps:10.0.0' |
after doing this I noticed that Edit: I noticed I can trick
|
This explains how to solve this issue. This article made the right solution for me. |
I recently made a fresh example build. |
Here is how I debugged this issue - 1. Look at the logs Here is what I was seeing in mine -
2. Find out the dependencies You'll see a massive tree (something like the following). Look at the culprits and see which one makes sense corresponding to your logs - 3. Fix the dependency As you can see that
|
I solved it by adding these lines:
and
|
@valerybodak Thanks a lot!! |
this solution made my day |
Hi guys,
I'm hoping this is something incredibly silly that I'm overlooking. I'm attempting to run a React Native app on an Android Emulator with the following settings:
It's basically just a Nexus 6 + Nougat with Google API's installed.
I fire up the application and get a weird exception from
com.airbnb.android.react.maps.AirMapManager
as follows:Does the exception imply that perhaps Google Play Services is not properly installed on my AVD? I'm guessing yes since running this on my actual Nexus 6P device yields no issues.
The even stranger part is it's already installed on my machine:
Is there an extra step I need to take to install Play Services on my emulator?
Thanks for the assist on this!
Eric
The text was updated successfully, but these errors were encountered: