Build release apk

When I run cmd: ionic cordova build --release android
I have bug:

Failed to restore plugin "org.apache.cordova.plugin.cache" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/tiltshiftfocus/cordova-plugin-cache.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code 1
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\KIEN\AppData\Roaming\npm-cache\_logs\2018-03-09T03_46_43_617Z-debug.log

Can you help me ??

Did you already tried doing what the error said?

1 Like