Code Monkey home page Code Monkey logo

Comments (28)

DanDance avatar DanDance commented on May 6, 2024 2

Got same problem. Fixed by creating new project in Google Developer Console, enabling Google Maps Android API in Developer Console, creating new key (for Android) and rebuilding application with new key

from react-native-maps.

notlose avatar notlose commented on May 6, 2024 1
<MapView
        style={{width:100,height:100}}
        initialRegion={{
          latitude: 37.78825,
          longitude: -122.4324,
          latitudeDelta: 0.0922,
          longitudeDelta: 0.0421,
        }}
      />

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

Do you have any errors in your Android Log?

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

No, nothing at all

console.log('MapView', MapView)

returns

MapView (props,context,updater){
if(process.env.NODE_ENV!=='production'){
process.env.NODE_ENV!=='production'?warning(this instanceof Constructor,'Something is calling a React component directly. …

from react-native-maps.

notlose avatar notlose commented on May 6, 2024

i have the same issue, rn 0.18.0

from react-native-maps.

notlose avatar notlose commented on May 6, 2024

everything works after adding style,
<MapView
style={{flex:1}}
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
/>

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

doesn't help in my case. @notlose could you post the code of your component here?

from react-native-maps.

lelandrichardson avatar lelandrichardson commented on May 6, 2024

@mdcsfk i dont imagine it would fix it, but do you think you could try removing the backgroundColor: 'red' style on the mapview?

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

@lelandrichardson backgroundColor presents just for debugging. Nothing changes when i'm removing it

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

during the execution of react-native run-androis i'm receiving this warnings:

Unknown source file : warning: string 'catalyst_debugjs' has no default translation.
Unknown source file : warning: string 'catalyst_element_inspector' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_error' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_message' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_title' has no default translation.
Unknown source file : warning: string 'catalyst_reloadjs' has no default translation.
Unknown source file : warning: string 'catalyst_settings' has no default translation.
Unknown source file : warning: string 'catalyst_settings_title' has no default translation.

may some of them be related to my issue?

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

when I intentionally use wrong google maps api key, I don't see any difference - no errors;
I've tested this key in one of my web projects to search within the radius - it works fine.

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

@mdcsfk I think you should see some errors in the log if you do switch the key to random, does adb logcat shows nothing ?
For me it was showing me errors about the map, and googled that means that Google Services was not installed properly.

Something in the log should show Google Maps Android API when the map is rendered

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

adb logcat *:S ReactNative:V ReactNativeJS:V doesn't contain google maps logs

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

It will not be with ReactNative nor ReactNativeJS, what happens when you run adb logcat | grep Google ?

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024
W/GooglePlayServicesUtil( 1911): Google Play services is missing.

I'm sure i have it installed and updated in Android SDK Manager
also, this is logs from react-native run android:

:app:prepareComGoogleAndroidGmsPlayServicesBase830Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement830Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps830Library UP-TO-DATE

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

Did you follow the step to install Google Services: https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md, you can follow the instructions from this link http://stackoverflow.com/questions/20121883/how-to-install-google-play-services-in-a-genymotion-vm-with-no-drag-and-drop-su/20137324#20137324 ?

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024

Stackoverflow helped, now the map gets rendered, but it is empty.
adb logcat has this:

W/ResourcesManager( 1689): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
W/ResourcesManager( 1689): Asset path '/system/framework/com.google.android.maps.jar' does not exist or contains no resources.

from react-native-maps.

kulikalov avatar kulikalov commented on May 6, 2024
no inject permission for { uid=10061, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#
W/ctxmgr  ( 1017): [AclManager]checkPermissionTypeStatus: no inject permission for { uid=10061, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#

from react-native-maps.

rahul1346 avatar rahul1346 commented on May 6, 2024

Any answers to above ^^

Im getting same as mdsfk

from react-native-maps.

sodik82 avatar sodik82 commented on May 6, 2024

maybe the same issue - installed npm, used rnpm and updated android manifest and this is what I see when debuging on real device (samsung s4).

    "react-native": "^0.19.0",
    "react-native-maps": "^0.3.0",

and code

        <MapView
          style={styles.map}
          initialRegion={{
            latitude: 37.78825,
            longitude: -122.4324,
            latitudeDelta: 0.0922,
            longitudeDelta: 0.0421,
          }}
        />

I just see "empty" map with google logo.
screenshot_2016-02-02-15-20-22

Logcats:

I/Google Maps Android API( 7006): Google Play services package version: 8489238

from react-native-maps.

sodik82 avatar sodik82 commented on May 6, 2024

In my case it was a problem with api key (I used JS one - not the android one).
However simple "fix" by updating key haven't worked. I tried several things so I am not sure what actually helped but I think ./gradlew clean assembleRelease and total uninstall from device helped.

from react-native-maps.

bbk1985 avatar bbk1985 commented on May 6, 2024

@DanDance thank you for the tip! developing for android on windows seems to be such a hassle

from react-native-maps.

dg92 avatar dg92 commented on May 6, 2024

@mdcsfk : please help to resolve issue.
getting same as you got in log
W/GooglePlayServicesUtil( 2349): Google Play services is missing.

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

@dg92 did you install google play services on the simulator? http://stackoverflow.com/questions/20121883/how-to-install-google-play-services-in-a-genymotion-vm-with-no-drag-and-drop-su/20137324#20137324 That's generally when you get this message

from react-native-maps.

dg92 avatar dg92 commented on May 6, 2024

@jrichardlai thanks for your time .
please refer the sdk manager screen shot , its installed.
screenshot from 2016-03-27 14 45 21

from react-native-maps.

dg92 avatar dg92 commented on May 6, 2024

@jrichardlai : thanks !

from react-native-maps.

jrichardlai avatar jrichardlai commented on May 6, 2024

You need to install it on the simulator you can follow this video https://www.youtube.com/watch?v=D0CjC4LVRuc ( or other one on youtube )

from react-native-maps.

spikebrehm avatar spikebrehm commented on May 6, 2024

Closing due to inactivity.

from react-native-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.