我是 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 最新
:classes UP-TO-DATE
:compileAndroidJava UP-TO-DATE
:compileRetrolambdaAndroid 跳过
:compileEmbeddedJava UP-TO-DATE
:compileRetrolambdaEmbedded 跳过
:compileTestJava 最新
:compileRetrolambdaTest 跳过
:compileRetrolambda UP-TO-DATE
:mergeClassesIntoJar
:validateManifest
:collectMultiDexComponents
:shrinkMultiDexComponents
:createMainDexList
[ant:java] Java 结果:1 :dex 失败
FAILURE:构建失败并出现异常。
* 出了什么问题:任务 ':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]