You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jose Aguilar (JIRA)" <ji...@apache.org> on 2017/11/20 07:56:00 UTC

[jira] [Created] (CB-13593) Error emulating Android

Jose Aguilar created CB-13593:
---------------------------------

             Summary: Error emulating Android
                 Key: CB-13593
                 URL: https://issues.apache.org/jira/browse/CB-13593
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-android
    Affects Versions: cordova@7.1.0
         Environment: Cordova 7.1.0, cordova-android@6.3.0, Android SDK 26.0.2 (April 2017) and Android Studio 3.0 on Ubuntu 16.04 TLS
            Reporter: Jose Aguilar
            Assignee: Joe Bowser
            Priority: Blocker


Error: Cannot read property 'replace' of undefined emulating Android.

The problem is on line 213 of the file {{<App path>/platforms/android/cordova/lib/emulator.js}}:

{code:java}
if (target) {
{code}

Solved by replacing:

{code:java}
if (target && target.match(/\(API\slevel\s/)) {
{code}

And in the package {{~/.npm/cordova-android/6.3.0/package.tgz}} in the file {{/package/bin/templates/cordova/lib/emulator.js}}

Thanks.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org