Gluon:Multidex - 无法解析配置的所有依赖项':androidRuntimeNoRetrolambdaCopy'

时间:2017-01-07 16:02:22

标签: java android javafx gluon

在Netbeans中为Android编译我的JavaFX项目时出现以下错误:

* What went wrong:
A problem occurred configuring root project ''.
> Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'.
   > Could not find com.android.support:multidex:1.0.1.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
         https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
         http://nexus.gluonhq.com/nexus/content/repositories/releases/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
         http://nexus.gluonhq.com/nexus/content/repositories/releases/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
     Required by:
         ::unspecified

我的build.gradle:

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

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.2.0'
}

jfxmobile {
    downConfig {
        version = '3.1.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'
androidSdk = 'C:/Users/mitch/AppData/Local/Android/sdk'
    }
    ios {
        infoPList = file('src/ios/Default-Info.plist')
        forceLinkClasses = [
                'com.gluonhq.**.*',
                'javax.annotations.**.*',
                'javax.inject.**.*',
                'javax.json.**.*',
                'org.glassfish.json.**.*'
        ]
    }
}

我尝试过: - 为jfxmobile使用不同的版本(我曾经有1.2.0导致成功构建但是在编译android结果时:)

* What went wrong:
Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check.
> java.io.FileNotFoundException: C:\Users\mitch\AppData\Local\Android\sdk\extras\android\support\multidex\library\libs\android-support-multidex.jar (The system cannot find the path specified)

有人可以提供建议吗?

0 个答案:

没有答案