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

[jira] [Updated] (CB-12921) createmobilespec --android fail to build apk out

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

Haitao Huo updated CB-12921:
----------------------------
    Description: 
Failed to build mobilespec apk with all master code (w/o --global) on Windows on latest commit [7a8101 | https://github.com/apache/cordova-mobile-spec/commit/7a8101496703f780c20c9324c2c5bde3928ade60].

{code}
> cordova-mobile-spec\createmobilespec\createmobilespec.cmd --android
Creating project from local git repos. If you have any errors, it may be from missing repositories.
To clone repositories:
  .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins
  mkdir cordova-cli\node_modules
  (cd cordova-lib\cordova-lib\ && npm install)
  (cd cordova-plugman\ && npm install)
  mkdir cordova-cli\node_modules
  ln -s ..\..\cordova-lib\cordova-lib cordova-cli\node_modules
  (cd cordova-cli && npm install)
To update all repositories:
  .\cordova-coho\coho repo-update
Checking if you are using master branch of tools
refs/heads/master
fatal: Not a git repository (or any of the parent directories): .git
{code}

Two problems:
1. The error message is not straightforward do not know what next to fix
2. The cordova-lib\cordova-lib\ does not exist at all, that is how the fatal reported.

Workaound:
1. Append --skiplink will resolve
2. Or append --gloabl, but it will use npm registry version instead of local git, which is not what we want.

  was:
Failed to build mobilespec apk with all master code (w/o --global) on Windows on latest commit [7a8101 | https://github.com/apache/cordova-mobile-spec/commit/7a8101496703f780c20c9324c2c5bde3928ade60].

{code}
> cordova-mobile-spec\createmobilespec\createmobilespec.cmd --android
Creating project from local git repos. If you have any errors, it may be from missing repositories.
To clone repositories:
  .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins
  mkdir cordova-cli\node_modules
  (cd cordova-lib\cordova-lib\ && npm install)
  (cd cordova-plugman\ && npm install)
  mkdir cordova-cli\node_modules
  ln -s ..\..\cordova-lib\cordova-lib cordova-cli\node_modules
  (cd cordova-cli && npm install)
To update all repositories:
  .\cordova-coho\coho repo-update
Checking if you are using master branch of tools
refs/heads/master
fatal: Not a git repository (or any of the parent directories): .git
{code}

Two problems:
1. The error message is not straightforward do not know what next to fix
2. The cordova-lib\cordova-lib\ does not exist at all, that is how the fatal reported.


> createmobilespec --android fail to build apk out
> ------------------------------------------------
>
>                 Key: CB-12921
>                 URL: https://issues.apache.org/jira/browse/CB-12921
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-mobile-spec
>    Affects Versions: Master
>            Reporter: Haitao Huo
>
> Failed to build mobilespec apk with all master code (w/o --global) on Windows on latest commit [7a8101 | https://github.com/apache/cordova-mobile-spec/commit/7a8101496703f780c20c9324c2c5bde3928ade60].
> {code}
> > cordova-mobile-spec\createmobilespec\createmobilespec.cmd --android
> Creating project from local git repos. If you have any errors, it may be from missing repositories.
> To clone repositories:
>   .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins
>   mkdir cordova-cli\node_modules
>   (cd cordova-lib\cordova-lib\ && npm install)
>   (cd cordova-plugman\ && npm install)
>   mkdir cordova-cli\node_modules
>   ln -s ..\..\cordova-lib\cordova-lib cordova-cli\node_modules
>   (cd cordova-cli && npm install)
> To update all repositories:
>   .\cordova-coho\coho repo-update
> Checking if you are using master branch of tools
> refs/heads/master
> fatal: Not a git repository (or any of the parent directories): .git
> {code}
> Two problems:
> 1. The error message is not straightforward do not know what next to fix
> 2. The cordova-lib\cordova-lib\ does not exist at all, that is how the fatal reported.
> Workaound:
> 1. Append --skiplink will resolve
> 2. Or append --gloabl, but it will use npm registry version instead of local git, which is not what we want.



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