You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Audrey So (JIRA)" <ji...@apache.org> on 2017/04/03 22:24:41 UTC

[jira] [Comment Edited] (CB-12615) cordova check_reqs.js cause build android fail

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

Audrey So edited comment on CB-12615 at 4/3/17 10:24 PM:
---------------------------------------------------------

Hi Huang, 

When are you getting this error? Is it when you run 'cordova platform add android'? Or is it just during 'cordova android build'? Does the android platform actually get added? (When you run 'cordova platform ls', is Android listed there?) Also, which .bat file are you talking about? Thanks so much! 

Audrey :)


was (Author: auso):
Hi Huang, 

When are you getting this error? Is it when you run 'cordova platform add android'? Does the android platform actually get added? (When you run 'cordova platform ls', is Android listed there?) Also, which .bat file are you talking about? Thanks so much! 

Audrey :)

> cordova check_reqs.js cause build android fail
> ----------------------------------------------
>
>                 Key: CB-12615
>                 URL: https://issues.apache.org/jira/browse/CB-12615
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 6.5.0
>         Environment: Windows 10
>            Reporter: huang
>
> this bug will cause cordova unable to find target enviroment because of the command error that conflicts with stock android platform.
> stock android command is 
> 'cordova requirements check Android target '
> while the current command is
> return tryCommand('android list targets --compact', msg)
> apparently there is an extra 's' at the back of target.
> I use cordova create project ,add android platform, in platforms\android\cordova\lib\check_reqs.js 249 line, tryCommand('android list targets --compact', msg) ERROR
> in Android.bat ,This Command is "android list target --compact "



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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