简体   繁体   English

Gradle错误,使用Gluon Mobile

[英]Error with gradle, using gluon mobile

Error with gradle, using gluon mobile. 使用gluon移动时gradle错误。

Hello everyone. 大家好。

I was testing the gluon mobile plugin in eclipse and it was working normally, however, after trying to add a dependency, I came across the following error: 我正在eclipse中测试gluon移动插件,它正在正常工作,但是,在尝试添加依赖项后,我遇到了以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':AppTesteApp:compileClasspath'.
> Could not download charm.jar (com.gluonhq:charm:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download glisten-afterburner.jar (com.gluonhq:glisten-afterburner:1.2.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/glisten-afterburner/1.2.1/glisten-afterburner-1.2.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/glisten-afterburner/1.2.1/glisten-afterburner-1.2.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-glisten-connect-view.jar (com.gluonhq:charm-glisten-connect-view:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-glisten.jar (com.gluonhq:charm-glisten:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-cloudlink-client.jar (com.gluonhq:charm-cloudlink-client:4.4.4)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. Received status code 503 from server: Service Unavailable

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

I changed IDE to try the same, and I came across the same error, and after this, it does not run. 我更改了IDE进行尝试,但遇到相同的错误,此后它无法运行。

Someone came across this error and corrected? 有人遇到此错误并更正了吗? any light? 有灯吗

I'm using InteliJ IDE and eclipse running on a fedora 26 with JDK 1.8, gradle 4. 我正在使用InteliJ IDE和Eclipse在JDK 1.8 gradle 4的fedora 26上运行。

My build.gradle: 我的build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.3.10'
    }
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

mainClassName = 'com.gluonapplication.GluonApplication'

dependencies {
    compile 'com.gluonhq:charm:4.4.1'
}

jfxmobile {
    downConfig {
        version = '3.6.0'
        // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android {
        manifest = 'src/android/AndroidManifest.xml'
    }
    ios {
        infoPList = file('src/ios/Default-Info.plist')
        forceLinkClasses = [
                'com.gluonhq.**.*',
                'javax.annotations.**.*',
                'javax.inject.**.*',
                'javax.json.**.*',
                'org.glassfish.json.**.*'
        ]
    }
}

Console error: 控制台错误:

12:26:52: Executing task 'build'...

:assemble UP-TO-DATE
:check UP-TO-DATE
:build UP-TO-DATE
:GluonMobile-MultiViewProjectApp:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':GluonMobile-MultiViewProjectApp:compileClasspath'.
> Could not download charm.jar (com.gluonhq:charm:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-glisten-connect-view.jar (com.gluonhq:charm-glisten-connect-view:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten-connect-view/4.4.1/charm-glisten-connect-view-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-glisten.jar (com.gluonhq:charm-glisten:4.4.1)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-glisten/4.4.1/charm-glisten-4.4.1.jar'. Received status code 503 from server: Service Unavailable
> Could not download charm-cloudlink-client.jar (com.gluonhq:charm-cloudlink-client:4.4.4)
   > Could not get resource 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'.
      > Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-cloudlink-client/4.4.4/charm-cloudlink-client-4.4.4.jar'. Received status code 503 from server: Service Unavailable

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

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
1 actionable task: 1 executed
Could not GET 'http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/4.4.1/charm-4.4.1.jar'. Received status code 503 from server: Service Unavailable
12:26:56: Task execution finished 'build'.

在此处输入图片说明

在此处输入图片说明

The error was solved, I downloaded the Gradle IdePack 3.8.x + 1.0.x plugin and succeeded in executing. 错误已解决,我下载了Gradle IdePack 3.8.x + 1.0.x插件并成功执行。 I am very grateful for all the support. 我非常感谢您的支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM