离子1 Android构建失败与cordovaLib错误

时间:2018-07-10 10:52:29

标签: ionic-framework

这就是我得到的:

BUILD FAILED


Total time: 4.962 secs

(node:8896) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApk'.
   > A problem occurred configuring project ':CordovaLib'.
      > Could not resolve all files for configuration ':CordovaLib:classpath'.
         > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2)
            > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar'.
               > Failed to move file 'C:\Users\Dell\AppData\Local\Temp\gradle_download2145167262646834118bin' into filestore at 'C:\Users\Dell\.gradle\caches\modules-2\files-2.1\org.codehaus.groovy.modules.http-builder\http-builder\0.7.2\323092cd786480311c1cf693770f9e6fc20a8bef\http-builder-0.7.2.jar'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (E:\Projects\gg\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:8896) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8896) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

离子信息:

cli packages: (E:\Projects\gg\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

    Cordova Platforms : android 6.3.0
    Ionic Framework   : ionic1 1.3.3

System:

    Node : v8.11.3
    npm  : 6.0.1
    OS   : Windows 8.1

Environment Variables:

    ANDROID_HOME : C:\Users\Dell\AppData\Local\Android\Sdk;

Misc:

    backend : pro

0 个答案:

没有答案