# ReferenceError: google is not defined

**URL:** <https://forum.ionicframework.com/t/referenceerror-google-is-not-defined/58356>\
**Category:** ionic-v1\
**Created:** [July 22, 2016, 11:58pm UTC](https://forum.ionicframework.com/t/referenceerror-google-is-not-defined/58356 "2016-07-22T23:58:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RafaelGotta](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rafaelgotta/32/101833_2.png) [@RafaelGotta](https://forum.ionicframework.com/u/RafaelGotta)\
**Post date:** [July 22, 2016, 11:58pm UTC](https://forum.ionicframework.com/t/referenceerror-google-is-not-defined/58356/1 "2016-07-22T23:58:48Z")

</div>

Hi guys, hope you can help me again… the print screen shows what happens when I run my app on Genymotion emulator (ionic run android -cls). I don’t know if it’s important, but before that I was getting the MultiDex Error and I solved it when I updated my jdk from 1.7 to 1.8. Now my problem is that “google is not defined”, however on my index I already have:

`<meta http-equiv="Content-Security-Policy" content="script-src 'self' https://maps.googleapis.com/ https://maps.gstatic.com/ https://mts0.googleapis.com/ 'unsafe-inline' 'unsafe-eval'">`

`<script src="https://maps.google.com/maps/api/js?key=AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es"></script>`

Considering that this error shows something wrong with the ionic.bundle.js file I think I need to take a look at this file, but I’m a beginner on ionic development and I don’t know what to look for on this file.

Someone can help me to understand what do I have to do to solve this issue?

![image](https://global.discourse-cdn.com/ionicframework/original/3X/0/5/05ff1b0cb90be1b8b7e0cc2f288810ee9b94ae74.png)

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [July 26, 2016, 6:46am UTC](https://forum.ionicframework.com/t/referenceerror-google-is-not-defined/58356/2 "2016-07-26T06:46:44Z")

</div>

but you should load google maps before ng-map

---

<div class="post-metadata">

**Author:** ![RafaelGotta](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rafaelgotta/32/101833_2.png) [@RafaelGotta](https://forum.ionicframework.com/u/RafaelGotta)\
**Post date:** [July 26, 2016, 9:33pm UTC](https://forum.ionicframework.com/t/referenceerror-google-is-not-defined/58356/3 "2016-07-26T21:33:30Z")

</div>

to the knowledge of all, I solved this error. On my index page I had “https//”:

```
<script src="https://maps.google.com/maps/api/js?key=AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es"></script>

```

to solve it, I just changed to “http://”:

```
<script src="http://maps.google.com/maps/api/js?key=AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es"></script>
```
