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: [email protected]
Environment: Cordova 7.1.0, [email protected], 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: [email protected]
For additional commands, e-mail: [email protected]