[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-09-14 Thread Filip Maj (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filip Maj updated CB-12981:
---
Labels: android-next  (was: )

> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX, Linux
>Reporter: Birowsky
>Assignee: Filip Maj
>  Labels: android-next
>
> Error happens when running `cordova run android` or `cordova emulate android`:
> Example output:
> {code}
> BUILD SUCCESSFUL
> Total time: 1.601 secs
> Built the following apk(s): 
>   
> /Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=/Users/Joanne/Library/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined
> {code}
> More details, environment information of multiple people having this problem 
> can be found here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297
> A solution was also proposed here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
> {quote}
> I just came across the same problem. I tracked it down to file 
> /platforms/android/cordova/lib/emulator.js line 202:
> {code}var num = target.split('(API level ')[1].replace(')', '');{code}
> I replaced it with a regex search and extraction:
> {code}var num = target.match(/\d+/)[0];{code}
> {quote}
> Not sure if this is the right way to fix this.



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Jan Piotrowski (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Piotrowski updated CB-12981:

Environment: OSX, Linux  (was: OSX)

> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX, Linux
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android` or `cordova emulate android`:
> Example output:
> {code}
> BUILD SUCCESSFUL
> Total time: 1.601 secs
> Built the following apk(s): 
>   
> /Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=/Users/Joanne/Library/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined
> {code}
> More details, environment information of multiple people having this problem 
> can be found here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297
> A solution was also proposed here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
> {quote}
> I just came across the same problem. I tracked it down to file 
> /platforms/android/cordova/lib/emulator.js line 202:
> {code}var num = target.split('(API level ')[1].replace(')', '');{code}
> I replaced it with a regex search and extraction:
> {code}var num = target.match(/\d+/)[0];{code}
> {quote}
> Not sure if this is the right way to fix this.



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Jan Piotrowski (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Piotrowski updated CB-12981:

Description: 
Error happens when running `cordova run android` or `cordova emulate android`:

Example output:

{code}
BUILD SUCCESSFUL

Total time: 1.601 secs
Built the following apk(s): 

/Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Joanne/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined
{code}

More details, environment information of multiple people having this problem 
can be found here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297

A solution was also proposed here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
{quote}
I just came across the same problem. I tracked it down to file 
/platforms/android/cordova/lib/emulator.js line 202:

{code}var num = target.split('(API level ')[1].replace(')', '');{code}

I replaced it with a regex search and extraction:

{code}var num = target.match(/\d+/)[0];{code}
{quote}
Not sure if this is the right way to fix this.

  was:
Error happens when running `cordova run android` or `cordova emulate android`:

Example output:

{code}
BUILD SUCCESSFUL

Total time: 1.601 secs
Built the following apk(s): 

/Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Joanne/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined
{code}

More details, environment information of multiple people having this problem 
can be found here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297

A solution was also proposed here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
{quote}
I just came across the same problem. I tracked it down to file 
/platforms/android/cordova/lib/emulator.js line 202:

{code}var num = target.split('(API level ')[1].replace(')', '');{code}

I replaced it with a regex search and extraction:

{code}var num = target.match(/\d+/)[0];{code}
{quote}



> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android` or `cordova emulate android`:
> Example output:
> {code}
> BUILD SUCCESSFUL
> Total time: 1.601 secs
> Built the following apk(s): 
>   
> /Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=/Users/Joanne/Library/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined
> {code}
> More details, environment information of multiple people having this problem 
> can be found here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297
> A solution was also proposed here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
> {quote}
> I just came across the same problem. I tracked it down to file 
> /platforms/android/cordova/lib/emulator.js line 202:
> {code}var num = target.split('(API level ')[1].replace(')', '');{code}
> I replaced it with a regex search and extraction:
> {code}var num = target.match(/\d+/)[0];{code}
> {quote}
> Not sure if this is the right way to fix this.



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Jan Piotrowski (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Piotrowski updated CB-12981:

Description: 
Error happens when running `cordova run android` or `cordova emulate android`:

Example output:

{code}
BUILD SUCCESSFUL

Total time: 1.601 secs
Built the following apk(s): 

/Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Joanne/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined
{code}

More details, environment information of multiple people having this problem 
can be found here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297

A solution was also proposed here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11

I just came across the same problem. I tracked it down to file 
/platforms/android/cordova/lib/emulator.js line 202:

{code}var num = target.split('(API level ')[1].replace(')', '');{code}

I replaced it with a regex search and extraction:

{code}var num = target.match(/\d+/)[0];{code}



  was:
Error happens when running `cordova run android`

Described here in details (solution included): 

https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297




> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android` or `cordova emulate android`:
> Example output:
> {code}
> BUILD SUCCESSFUL
> Total time: 1.601 secs
> Built the following apk(s): 
>   
> /Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=/Users/Joanne/Library/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined
> {code}
> More details, environment information of multiple people having this problem 
> can be found here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297
> A solution was also proposed here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
> I just came across the same problem. I tracked it down to file 
> /platforms/android/cordova/lib/emulator.js line 202:
> {code}var num = target.split('(API level ')[1].replace(')', '');{code}
> I replaced it with a regex search and extraction:
> {code}var num = target.match(/\d+/)[0];{code}



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Jan Piotrowski (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Piotrowski updated CB-12981:

Description: 
Error happens when running `cordova run android` or `cordova emulate android`:

Example output:

{code}
BUILD SUCCESSFUL

Total time: 1.601 secs
Built the following apk(s): 

/Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Joanne/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined
{code}

More details, environment information of multiple people having this problem 
can be found here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297

A solution was also proposed here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
{quote}
I just came across the same problem. I tracked it down to file 
/platforms/android/cordova/lib/emulator.js line 202:

{code}var num = target.split('(API level ')[1].replace(')', '');{code}

I replaced it with a regex search and extraction:

{code}var num = target.match(/\d+/)[0];{code}
{quote}


  was:
Error happens when running `cordova run android` or `cordova emulate android`:

Example output:

{code}
BUILD SUCCESSFUL

Total time: 1.601 secs
Built the following apk(s): 

/Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Joanne/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
Error: Cannot read property 'replace' of undefined
{code}

More details, environment information of multiple people having this problem 
can be found here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297

A solution was also proposed here:
https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11

I just came across the same problem. I tracked it down to file 
/platforms/android/cordova/lib/emulator.js line 202:

{code}var num = target.split('(API level ')[1].replace(')', '');{code}

I replaced it with a regex search and extraction:

{code}var num = target.match(/\d+/)[0];{code}




> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android` or `cordova emulate android`:
> Example output:
> {code}
> BUILD SUCCESSFUL
> Total time: 1.601 secs
> Built the following apk(s): 
>   
> /Users/Joanne/Desktop/learning/mobile/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=/Users/Joanne/Library/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined
> {code}
> More details, environment information of multiple people having this problem 
> can be found here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297
> A solution was also proposed here:
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297/11
> {quote}
> I just came across the same problem. I tracked it down to file 
> /platforms/android/cordova/lib/emulator.js line 202:
> {code}var num = target.split('(API level ')[1].replace(')', '');{code}
> I replaced it with a regex search and extraction:
> {code}var num = target.match(/\d+/)[0];{code}
> {quote}



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Birowsky (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Birowsky updated CB-12981:
--
Description: 
Error happens when running `cordova run android`

Described here in details (solution included): 

https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297



  was:
Error happens when running `cordova run android`

Described here in details: 

https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297




> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android`
> Described here in details (solution included): 
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297



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

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



[jira] [Updated] (CB-12981) Error: Cannot read property ‘replace’ of undefined [Android]

2017-07-03 Thread Birowsky (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Birowsky updated CB-12981:
--
Description: 
Error happens when running `cordova run android`

Described here in details: 

https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297



  was:
Error happens when running `cordova run android`

Described here in details: 

https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297



> Error: Cannot read property ‘replace’ of undefined [Android]
> 
>
> Key: CB-12981
> URL: https://issues.apache.org/jira/browse/CB-12981
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: cordova@7.0.0
> Environment: OSX
>Reporter: Birowsky
>Assignee: Joe Bowser
>
> Error happens when running `cordova run android`
> Described here in details: 
> https://forum.ionicframework.com/t/error-cannot-read-property-replace-of-undefined-android/93297



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

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