在尝试为iOS构建测试应用时,我遇到了下面的例外情况。这里似乎有一个解决方法https://github.com/MobiVM/robovm/issues/188,但我想这个修复程序并没有使它成为我正在使用的fork(摘自我的gradle.build):
buildscript {
repositories {
jcenter()
}
dependencies {
//cc_init_javafxports check version:
// https://bitbucket.org/javafxports/javafxmobile-plugin
classpath 'org.javafxports:jfxmobile-plugin:1.3.8'
}
}
我克隆了javafxmobile-plugin的源代码。 2周前,版本1.3.9已提交:
changeset: 472:8491a50f2b76
tag: 1.3.9
user: Gluon Jenkins <jenkins@gluonhq.com>
date: Thu Oct 19 16:05:18 2017 +0200
summary: new release: 1.3.9
但它尚未发表。
有人知道这个javafxmobile-plugin v1.3.9是否解决了下面显示的问题?如果没有,是否有解决方法,例如通过重命名某些类?
Caused by: org.robovm.compiler.CompilerException: java.lang.ArrayIndexOutOfBoundsException: -1
at org.robovm.compiler.plugin.lambda.LambdaPlugin.transformMethod(LambdaPlugin.java:242)
at org.robovm.compiler.plugin.lambda.LambdaPlugin.beforeClass(LambdaPlugin.java:89)
...
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.robovm.compiler.plugin.lambda.LambdaClassGenerator.pushArguments(LambdaClassGenerator.java:203)
at org.robovm.compiler.plugin.lambda.LambdaClassGenerator.createForwardingMethod(LambdaClassGenerator.java:134)
at org.robovm.compiler.plugin.lambda.LambdaClassGenerator.generate(LambdaClassGenerator.java:79)
at org.robovm.compiler.plugin.lambda.LambdaPlugin.transformMethod(LambdaPlugin.java:180)
... 85 more