Netbeans上的JavaFX Gluon android构建失败

时间:2016-06-02 09:55:58

标签: android netbeans javafx gluon

我是Gluon插件的新手。我编辑了build.gradle中的一些代码

    manifest = 'src/android/AndroidManifest.xml'
    compileSdkVersion = 23
    buildToolsVersion = '23.0.2'
    applicationPackage = 'org.javafxports.jfxmobile'
    manifest = 'src/android/AndroidManifest.xml'
    resDirectory = 'src/android/res'
    androidSdk ='D:/IT Backup/sdk'

我有D:\ IT Backup \ sdk \ extras \ android \ support \ multidex

但是当我构建项目到android时它失败了。给我这个输出:

执行:gradle:android

:compileJava UP-TO-DATE

:compileRetrolambdaMain UP-TO-DATE

:processResources UP-TO-DATE

:UP-TO-DATE类

:compileAndroidJava UP-TO-DATE

:compileRetrolambdaAndroid SKIPPED

:compileEmbeddedJava UP-TO-DATE

:compileRetrolambdaEmbedded SKIPPED

:compileTestJava UP-TO-DATE

:compileRetrolambdaTest SKIPPED

:compileRetrolambda UP-TO-DATE

:mergeClassesIntoJar

:validateManifest

:collectMultiDexComponents

:shrinkMultiDexComponents

:createMainDexList

[ant:java] Java结果:1 :dex FAILED

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

*出了什么问题: 任务':dex'执行失败。

使用--debug:我知道了:

13:26:20.763 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :dex FAILED
13:26:20.763 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :dex (Thread[Daemon worker Thread 6,5,main]) completed. Took 0.252 secs.
13:26:20.763 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 6,5,main]] finished, busy: 36.894 secs, idle: 0.015 secs
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] 
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] 
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':dex'.
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] > org.gradle.api.GradleException (no error message)
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] 
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
13:26:20.763 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
13:26:20.763 [LIFECYCLE] [org.gradle.BuildResultLogger] 

0 个答案:

没有答案