title: How to solve Android Phonegap app SyntaxError: Parse error? (Blank Screen issue)
body: <p>I'm using <strong><a href="http://people.apache.org/~pmuellr/weinre/docs/latest/" rel="nofollow">weinre</a></strong> to be able to make remote debug on an app being executed on an android emulator, running on Mac OS X (latest version).</p>
  
  <p><strong>Context (eventually necessary)</strong>:</p>
  
  <p>The current AVD (Android Virtual Device) that I'm using is:</p>
  
  <ul>
  <li><strong>Device</strong>: Nexus 4 (4.7", 768 x 1280: xhdpi)</li>
  <li><p><strong>Target</strong>: Android 2.3.3 - API Level 10</p>
  
  <p><strong>Javascript Framework</strong>: <a href="http://dojotoolkit.org" rel="nofollow">Dojo, v1.9</a></p></li>
  </ul>
  
  <p><strong>Actual Problem</strong>:</p>
  
  <p>I'm trying to initialize a method from the remote console (the <strong>weinre</strong>), but once I started calling it I get the respective output:</p>
  
  <p><strong>1st method call:</strong></p>
  
  <pre><code>SyntaxError: Parse error
  </code></pre>
  
  <p><strong>2nd method call:</strong></p>
  
  <pre><code>TypeError: Result of expression 'lang' [undefined] is not an object.
  </code></pre>
  
  <p><strong>3rd method call:</strong></p>
  
  <pre><code>undefined
  </code></pre>
  
  <p>And from this point on, the method that I'm trying to call, will always give an <strong>undefined</strong> output.</p>
  
  <p>I know that the first error is giving because of an array that I'm defining it. Namely:</p>
  
  <pre><code>var requiredLibraries = ["app/webpage",
              "dojo/_base/window",
              "dojo/dom-construct",
              "dijit/registry",
              "dojo/on",
              "dojox/mobile",
              "dojox/mobile/deviceTheme",
              "dojox/mobile/compat",
              "dojo/domReady!"
          ];
  </code></pre>
  
  <p>But I don't see any parse error at all. In fact, I've already passed my code through <a href="http://jslint.com" rel="nofollow">jslint</a> and it's valid.</p>
  
  <p>I've tried other android devices, other versions, namely, <strong>version 4.4</strong>, but in vain. Every time I get the same result.</p>
  
  <p><strong>NOTE:</strong> Only on Android devices/Android Emulators. I have zero problems when testing the app on a Desktop browser or iOS Devices/iOS Simulators.</p>
  
  <p>Any hint?</p>