title: Cannot read handleEvent of undefined with Cordova on Android only
body: <p>I'm trying to build an Cordova app using Backbone.js and underscore.js for templates.</p>
  
  <p>When I upload my .zip to the Phonegap Cloud build Everything builds without errors inside the log file. The IOS version works without any hassle the Android version runs but the screen stays white. </p>
  
  <p>When running the app on a physical device and checking it via <code>chrome://inspect</code> I see the following error: </p>
  
  <p><a href="https://i.stack.imgur.com/nUQwp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nUQwp.png" alt="Console error"></a></p>
  
  <p>My config.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;widget xmlns     = "http://www.w3.org/ns/widgets"
          xmlns:gap = "http://phonegap.com/ns/1.0"
          id        = "app.appname.appname"
          version   = "0.2.0"&gt;
      &lt;name&gt;Appname&lt;/name&gt;
  
      &lt;description&gt;
          Lorem ipsum
      &lt;/description&gt;
  
      &lt;author href="http://www.appname.nl" email="appname@appname.nl"&gt;
          Appname
      &lt;/author&gt;
  
      &lt;access origin="*"/&gt;
  
      &lt;!-- Which platforms to build for --&gt;
      &lt;gap:platform name="ios" /&gt;
      &lt;gap:platform name="android" /&gt;
  
      &lt;plugin name="cordova-plugin-statusbar" spec="https://github.com/apache/cordova-plugin-statusbar.git" /&gt;
  
  
      &lt;plugin name="cordova-plugin-inappbrowser" spec="https://github.com/apache/cordova-plugin-inappbrowser"/&gt;
  
      &lt;plugin name="cordova-plugin-vibration" spec="https://github.com/apache/cordova-plugin-vibration" /&gt;
  
      &lt;plugin name="cordova-plugin-device" spec="https://github.com/apache/cordova-plugin-device" /&gt;
  
      &lt;plugin name="phonegap-plugin-push" source="npm" spec="~1.8.0"&gt;
          &lt;variable name="SENDER_ID" value="xxx" /&gt;
      &lt;/plugin&gt;
  
  
      &lt;feature name="InAppBrowser"&gt;
          &lt;param name="android-package" value="org.apache.cordova.InAppBrowser"/&gt;
      &lt;/feature&gt;
  
      &lt;feature name="InAppBrowser"&gt;
          &lt;param name="ios-package" value="CDVInAppBrowser" /&gt;
      &lt;/feature&gt;
  
      &lt;feature name="StatusBar"&gt;
        &lt;param name="ios-package" value="CDVStatusBar" onload="true" /&gt;
      &lt;/feature&gt;
  
      &lt;feature name="http://api.phonegap.com/1.0/device" /&gt;
      &lt;feature name="http://api.phonegap.com/1.0/notification"/&gt;
  
      &lt;preference name="phonegap-version" value="cli-6.5.0" /&gt;
  
      &lt;preference name="StatusBarOverlaysWebView" value="true" /&gt;
      &lt;preference name="orientation"      value="portrait" /&gt;
      &lt;preference name="target-device"    value="handset" /&gt;
      &lt;preference name="fullscreen"       value="false" /&gt;
      &lt;preference name="KeyboardDisplayRequiresUserAction" value="false" /&gt;
  
      &lt;preference name="exit-on-suspend"  value="true" /&gt;
  
      &lt;preference name="prerendered-icon" value="true" /&gt;
  
      &lt;preference name="DisallowOverscroll" value="true" /&gt;
  
      &lt;preference name="android-targetSdkVersion" value="14" /&gt;
  
      &lt;icon src="icon.png" /&gt;
  
      &lt;platform name="android"&gt;
          &lt;icon density="ldpi" src="icons/android/drawable-ldpi-icon.png" /&gt;
          &lt;icon density="mdpi" src="icons/android/drawable-mdpi-icon.png" /&gt;
          &lt;icon density="hdpi" src="icons/android/drawable-hdpi-icon.png" /&gt;
          &lt;icon density="xhdpi" src="icons/android/drawable-xhdpi-icon.png" /&gt;
          &lt;icon density="xxhdpi" src="icons/android/drawable-xxhdpi-icon.png" /&gt;
          &lt;icon density="xxxhdpi" src="icons/android/drawable-xxxhdpi-icon.png" /&gt;
  
          &lt;splash density="land-ldpi" src="splash/android/drawable-land-ldpi/screen-ldpi-landscape.png" /&gt;
          &lt;splash density="land-mdpi" src="splash/android/drawable-land-mdpi/screen-mdpi-landscape.png" /&gt;
          &lt;splash density="land-hdpi" src="splash/android/drawable-land-hdpi/screen-hdpi-landscape.png" /&gt;
          &lt;splash density="land-xhdpi" src="splash/android/drawable-land-xhdpi/screen-xhdpi-landscape.png" /&gt;
          &lt;splash density="land-xxhdpi" src="splash/android/drawable-land-xxhdpi/screen-xxhdpi-landscape.png" /&gt;
          &lt;splash density="land-xxxhdpi" src="splash/android/drawable-land-xxxhdpi/screen-xxxhdpi-landscape.png" /&gt;
  
          &lt;splash density="port-ldpi" src="splash/android/drawable-port-ldpi/screen-ldpi-portrait.png" /&gt;
          &lt;splash density="port-mdpi" src="splash/android/drawable-port-mdpi/screen-mdpi-portrait.png" /&gt;
          &lt;splash density="port-hdpi" src="splash/android/drawable-port-hdpi/screen-hdpi-portrait.png" /&gt;
          &lt;splash density="port-xhdpi" src="splash/android/drawable-port-xhdpi/screen-xhdpi-portrait.png" /&gt;
          &lt;splash density="port-xxhdpi" src="splash/android/drawable-port-xxhdpi/screen-xxhdpi-portrait.png" /&gt;
          &lt;splash density="port-xxxhdpi" src="splash/android/drawable-port-xxxhdpi/screen-xxxhdpi-portrait.png" /&gt;
      &lt;/platform&gt;
  
      &lt;platform name="ios"&gt;
          &lt;icon height="57" platform="ios" src="icons/ios/Icon.png" width="57" /&gt;
          &lt;icon height="114" platform="ios" src="icons/ios/Icon@2x.png" width="114" /&gt;
          &lt;icon height="40" platform="ios" src="icons/ios/Icon-40.png" width="40" /&gt;
          &lt;icon height="80" platform="ios" src="icons/ios/Icon-40@2x.png" width="80" /&gt;
          &lt;icon height="50" platform="ios" src="icons/ios/Icon-50.png" width="50" /&gt;
          &lt;icon height="100" platform="ios" src="icons/ios/Icon-50@2x.png" width="100" /&gt;
          &lt;icon height="60" platform="ios" src="icons/ios/Icon-60.png" width="60" /&gt;
          &lt;icon height="120" platform="ios" src="icons/ios/Icon-60@2x.png" width="120" /&gt;
          &lt;icon height="180" platform="ios" src="icons/ios/Icon-60@3x.png" width="180" /&gt;
          &lt;icon height="72" platform="ios" src="icons/ios/Icon-72.png" width="72" /&gt;
          &lt;icon height="144" platform="ios" src="icons/ios/Icon-72@2x.png" width="144" /&gt;
          &lt;icon height="76" platform="ios" src="icons/ios/Icon-76.png" width="76" /&gt;
          &lt;icon height="152" platform="ios" src="icons/ios/Icon-76@2x.png" width="152" /&gt;
          &lt;icon height="29" platform="ios" src="icons/ios/Icon-small.png" width="29" /&gt;
          &lt;icon height="58" platform="ios" src="icons/ios/Icon-small@2x.png" width="58" /&gt;
          &lt;icon height="87" platform="ios" src="icons/ios/Icon-small@3x.png" width="87" /&gt;
  
          &lt;splash height="1136" platform="ios" src="splash/ios/Default-568h@2x~iphone.png" width="640" /&gt;
          &lt;splash height="1334" platform="ios" src="splash/ios/Default-667h.png" width="750" /&gt;
          &lt;splash height="2208" platform="ios" src="splash/ios/Default-736h.png" width="1242" /&gt;
          &lt;splash height="1242" platform="ios" src="splash/ios/Default-Landscape-736h.png" width="2208" /&gt;
          &lt;splash height="1536" platform="ios" src="splash/ios/Default-Landscape@2x~ipad.png" width="2048" /&gt;
          &lt;splash height="768" platform="ios" src="splash/ios/Default-Landscape~ipad.png" width="1024" /&gt;
          &lt;splash height="2048" platform="ios" src="splash/ios/Default-Portrait@2x~ipad.png" width="1536" /&gt;
          &lt;splash height="1024" platform="ios" src="splash/ios/Default-Portrait~ipad.png" width="768" /&gt;
          &lt;splash height="960" platform="ios" src="splash/ios/Default@2x~iphone.png" width="640" /&gt;
          &lt;splash height="480" platform="ios" src="splash/ios/Default~iphone.png" width="320" /&gt;
      &lt;/platform&gt;
  
  &lt;/widget&gt;
  </code></pre>
  
  <p>My zip folder structure:</p>
  
  <pre><code>www
  - config.xml
  - fonts
      - fontA.svg
      - fontA.woff
      - ...
  - icons
      - android
         - drawable-hdpi-icon.png 
         - ...
      - ios
          - Icon-60@2x.png
          - ...
  - images
      - loader.gif
      - ...
  - scripts
      - main.min.js
      - vendor.min.js
      - vendor
          - modernizr.js
  - splash
      - android
          - drawable-land-hdpi
              - screen-hdpi-landscape.png
          - ...
      - ios
          - Default-568h@2x~iphone.png
          - ...
  - styles
      - main.min.css
      - vendor.min.css
  </code></pre>