离子 - 无法解决com.android.tools.build:gradle:2.2.3

时间:2017-07-09 07:49:35

标签: android gradle ionic-framework

在尝试构建离子android时,我从gradle中得到以下错误。 你能帮帮我解决这个问题吗? 顺便说一下,我还没有安装Android Studio。

失败:构建因异常而失败。

    * What went wrong:
    A problem occurred configuring root project 'android'.
    > Could not resolve all dependencies for configuration ':classpath'.
    > Could not resolve com.android.tools.build:gradle:2.2.3.
    Required by:
    project :
    > Could not resolve com.android.tools.build:gradle:2.2.3.
    > Could not get resource
    'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle                             -2.2.3.pom'.
    > Could not GET
    'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle                             -2.2.3.pom'.
    > Permission denied: connect

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or
    --debug option to get more log output.

    BUILD FAILED

    Total time: 1 mins 27.452 secs
    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 ':classpath'.
    > Could not resolve com.android.tools.build:gradle:2.2.3.
    Required by:
    project :
    > Could not resolve com.android.tools.build:gradle:2.2.3.
    > Could not get resource
    'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle                             -2.2.3.pom'.
    > Could not GET
    'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle                             -2.2.3.pom'.
    > Permission denied: connect

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or
    --debug option to get more log output.

1 个答案:

答案 0 :(得分:0)

只需使用VPN在网上免费上网,整个系统使用IPSEC L2P或blob

等协议