You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ulrik Gammelby (JIRA)" <ji...@apache.org> on 2017/06/30 09:16:00 UTC

[jira] [Commented] (CB-12661) The android emulator will not execute

    [ https://issues.apache.org/jira/browse/CB-12661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069759#comment-16069759 ] 

Ulrik Gammelby commented on CB-12661:
-------------------------------------

The referenced CB-12767 does not have a fix version. In the discussion it sounds as if the problem was related to the reporter's tool configuration. I get the same problem here and had to patch emulator.js according to a hint an Ionic forum:

{code}
202c202
<                 var num = target.split('(API level ')[1].replace(')', '');
---
>                 var num = target.match(/\d+/)[0];
{code}


> The android emulator will not execute
> -------------------------------------
>
>                 Key: CB-12661
>                 URL: https://issues.apache.org/jira/browse/CB-12661
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli, cordova-windows
>         Environment: WIndow 10 Home
> Cordova 6.5.0
>            Reporter: Phillip Whiteley
>
> This exact setup (Except for Android Studio Updates) worked Jan 2017 and for years before. I have seen many posts on this.
> Hi,
> The bug is that the emulator cannot be started - will deploy to phone.
> Steps:
> Create a simple app .
> cordova create hello com.ex.hello HelloWorld
> cd hello
> cordova platform add android@6.2.1 (Or gradle won't work.) 
> cordova run android
> ---------------------------------------------------------------
> BUG
> -------
> ANDROID_HOME=E:\2016\Android\android-sdk
> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
> Subproject Path: CordovaLib
> Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
> The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
>         at build_bkix3ywyblbgnflxvkopif3zs.run(C:\Users\phil\Desktop\newAPP\platforms\android\build.gradle:137)
> Observed package id 'build-tools;23.0.1' in inconsistent location 'E:\2016\Android\android-sdk\build-tools\build-tools-23.0.1' (Expected 'E:\2016\Android\android-sdk\build-tools\23.0.1')
> Observed package id 'build-tools;23.0.1' in inconsistent location 'E:\2016\Android\android-sdk\build-tools\build-tools-23.0.1' (Expected 'E:\2016\Android\android-sdk\build-tools\23.0.1')
> The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
> Incremental java compilation is an incubating feature.
> The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
> :preBuild UP-TO-DATE
> >> Everything up -to-date here..... pcw
> :cdvBuildDebug UP-TO-DATE
> BUILD SUCCESSFUL
> Total time: 23.227 secs
> Built the following apk(s):
>         C:/Users/phil/Desktop/newAPP/platforms/android/build/outputs/apk/android-debug.apk
> ANDROID_HOME=E:\2016\Android\android-sdk
> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
> No target specified and no devices found, deploying to emulator
> Error: Cannot read property 'replace' of undefined   <<<----------------
> ---------------------------------------------------------------------------------------



--
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