Javafx 当用模拟器测试时,Gluon android apk会产生一个黑屏

Javafx 当用模拟器测试时,Gluon android apk会产生一个黑屏,javafx,gluon,gluon-mobile,javafxports,Javafx,Gluon,Gluon Mobile,Javafxports,然而,我遵循了gluon mobile android安装教程,在创建apk并在模拟器上运行时,会出现一个黑屏,基本上会使应用程序崩溃。这是当前我的build.gradle: buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.3.10' classpath 'com.google.gms:google-services:

然而,我遵循了gluon mobile android安装教程,在创建apk并在模拟器上运行时,会出现一个黑屏,基本上会使应用程序崩溃。这是当前我的build.gradle:

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'org.javafxports:jfxmobile-plugin:1.3.10'
    classpath 'com.google.gms:google-services:3.1.0'
}
}

apply plugin: 'org.javafxports.jfxmobile'

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

mainClassName = 'com.gluonapplication.GluonApplication'

dependencies {

compile 'com.gluonhq:charm:4.4.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.firebase:firebase-admin:5.9.0'
compile 'com.jfoenix:jfoenix:8.0.1'
compile "com.android.support:support-v4:25.1.1"

androidRuntime 'com.gluonhq:charm-down-core-android:3.7.2'



}

jfxmobile {
javafxportsVersion = '8.60.9'
downConfig {
    version = '3.7.2'
    // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
    plugins 'display', 'lifecycle', 'statusbar', 'storage', 'pictures'
}
android {
    manifest = 'src/android/AndroidManifest.xml'
    androidSdk = "C:/Android/android-sdk"

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/INDEX.LIST'
        exclude 'META-INF/io.netty.versions.properties'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/LGPL2.1'
    }


}
ios {
    infoPList = file('src/ios/Default-Info.plist')
    forceLinkClasses = [
            'com.gluonhq.**.*',
            'javax.annotations.**.*',
            'javax.inject.**.*',
            'javax.json.**.*',
            'org.glassfish.json.**.*'
    ]
    }
}
我的adb日志:

System.err: Exception in Application start method
04-21 01:58:12.247  3694  3718 I System.out: QuantumRenderer: shutdown
04-21 01:58:12.254  3694  3714 W System.err: java.lang.reflect.InvocationTargetException
04-21 01:58:12.255  3694  3714 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
04-21 01:58:12.256  3694  3714 W System.err:    at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:188)
04-21 01:58:12.256  3694  3714 W System.err:    at java.lang.Thread.run(Thread.java:761)
04-21 01:58:12.257  3694  3714 W System.err: Caused by: java.lang.RuntimeException: Exception in Application start method
04-21 01:58:12.257  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
04-21 01:58:12.257  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$138(LauncherImpl.java:182)
04-21 01:58:12.257  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl.access$lambda$1(LauncherImpl.java)
04-21 01:58:12.257  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl$$Lambda$2.run(Unknown Source)
04-21 01:58:12.258  3694  3714 W System.err:    ... 1 more
04-21 01:58:12.270  3694  3714 W System.err: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate;
04-21 01:58:12.271  3694  3714 W System.err:    at javafx.scene.AccessibleAttribute.<clinit>(AccessibleAttribute.java:217)
04-21 01:58:12.271  3694  3714 W System.err:    at javafx.scene.Node$1.invalidated(Node.java:773)
04-21 01:58:12.271  3694  3714 W System.err:    at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
04-21 01:58:12.272  3694  3714 W System.err:    at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
04-21 01:58:12.272  3694  3714 W System.err:    at javafx.scene.Node.setParent(Node.java:720)
04-21 01:58:12.272  3694  3714 W System.err:    at javafx.scene.Parent$1.onChanged(Parent.java:268)
04-21 01:58:12.273  3694  3714 W System.err:    at com.sun.javafx.collections.TrackableObservableList.lambda$new$17(TrackableObservableList.java:44)
04-21 01:58:12.273  3694  3714 W System.err:    at com.sun.javafx.collections.TrackableObservableList.access$lambda$0(TrackableObservableList.java)
04-21 01:58:12.273  3694  3714 W System.err:    at com.sun.javafx.collections.TrackableObservableList$$Lambda$1.onChanged(Unknown Source)
04-21 01:58:12.279  3694  3714 W System.err:    at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:328)
04-21 01:58:12.280  3694  3714 W System.err:    at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:72)
04-21 01:58:12.280  3694  3714 W System.err:    at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:232)
04-21 01:58:12.280  3694  3714 W System.err:    at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
04-21 01:58:12.280  3694  3714 W System.err:    at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
04-21 01:58:12.280  3694  3714 W System.err:    at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:204)
04-21 01:58:12.281  3694  3714 W System.err:    at javafx.collections.ModifiableObservableListBase.addAll(ModifiableObservableListBase.java:102)
04-21 01:58:12.281  3694  3714 W System.err:    at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:237)
04-21 01:58:12.281  3694  3714 W System.err:    at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:103)
04-21 01:58:12.282  3694  3714 W System.err:    at com.gluonhq.charm.glisten.application.GlassPane.a(SourceFile:145)
04-21 01:58:12.282  3694  3714 W System.err:    at com.gluonhq.charm.glisten.application.MobileApplication.a(SourceFile:229)
04-21 01:58:12.282  3694  3714 W System.err:    at com.gluonhq.charm.glisten.application.MobileApplication.start(SourceFile:224)
04-21 01:58:12.282  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$145(LauncherImpl.java:863)
04-21 01:58:12.282  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl.access$lambda$8(LauncherImpl.java)
04-21 01:58:12.283  3694  3714 W System.err:    at com.sun.javafx.application.LauncherImpl$$Lambda$9.run(Unknown Source)
04-21 01:58:12.283  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$158(PlatformImpl.java:326)
04-21 01:58:12.283  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.access$lambda$6(PlatformImpl.java)
04-21 01:58:12.283  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl$$Lambda$7.run(Unknown Source)
04-21 01:58:12.283  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.lambda$null$156(PlatformImpl.java:295)
04-21 01:58:12.284  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.access$lambda$18(PlatformImpl.java)
04-21 01:58:12.284  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl$$Lambda$19.run(Unknown Source)
04-21 01:58:12.285  3694  3714 W System.err:    at java.security.AccessController.doPrivileged(AccessController.java:57)
04-21 01:58:12.285  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.lambda$runLater$157(PlatformImpl.java:294)
04-21 01:58:12.285  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl.access$lambda$5(PlatformImpl.java)
04-21 01:58:12.286  3694  3714 W System.err:    at com.sun.javafx.application.PlatformImpl$$Lambda$6.run(Unknown Source)
04-21 01:58:12.286  3694  3714 W System.err:    at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:93)
04-21 01:58:12.286  3694  3714 W System.err:    at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:52)
04-21 01:58:12.286  3694  3714 W System.err:    ... 1 more
04-21 01:58:12.289  3694  3714 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "java.time.LocalDate" on path: DexPathList[[zip file "/data/app/com.gluonapplication-2/base.apk"],nativeLibraryDirectories=[/data/app/com.gluonapplication-2/lib/arm, /data/app/com.gluonapplication-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
04-21 01:58:12.290  3694  3714 W System.err:    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-21 01:58:12.290  3694  3714 W System.err:    at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
04-21 01:58:12.290  3694  3714 W System.err:    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
04-21 01:58:12.291  3694  3714 W System.err:    ... 37 more
System.err:应用程序启动方法中出现异常
04-21 01:58:12.247 3694 3718 I系统输出:量程输出:关机
04-21 01:58:12.254 3694 3714 W System.err:java.lang.reflect.InvocationTargetException
04-21 01:58:12.255 3694 3714 W System.err:at java.lang.reflect.Method.invoke(本机方法)
04-21 01:58:12.256 3694 3714 W System.err:at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:188)
04-21 01:58:12.256 3694 3714 W System.err:at java.lang.Thread.run(Thread.java:761)
04-21 01:58:12.257 3694 3714 W System.err:原因:java.lang.RuntimeException:应用程序启动方法中的异常
04-21 01:58:12.257 3694 3714 W System.err:在com.sun.javafx.application.launchempl.launcheapplication1(launchempl.java:917)
04-21 01:58:12.257 3694 3714 W System.err:在com.sun.javafx.application.launchempl.lambda$launchApplication$138(launchempl.java:182)
04-21 01:58:12.257 3694 3714 W System.err:在com.sun.javafx.application.launchempl.access$lambda$1(launchempl.java)
04-21 01:58:12.257 3694 3714 W System.err:位于com.sun.javafx.application.launchempl$$Lambda$2.run(未知源)
04-21 01:58:12.258 3694 3714 W系统错误:。。。还有一个
04-21 01:58:12.270 3694 3714 W System.err:原因:java.lang.NoClassDefFoundError:解析失败:Ljava/time/LocalDate;
04-21 01:58:12.271 3694 3714 W System.err:at javafx.scene.AccessibleAttribute.(AccessibleAttribute.java:217)
04-21 01:58:12.271 3694 3714 W System.err:at javafx.scene.Node$1.无效(Node.java:773)
04-21 01:58:12.271 3694 3714 W System.err:at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
04-21 01:58:12.272 3694 3714 W System.err:at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
04-21 01:58:12.272 3694 3714 W System.err:at javafx.scene.Node.setParent(Node.java:720)
04-21 01:58:12.272 3694 3714 W System.err:at javafx.scene.Parent$1.onChanged(Parent.java:268)
04-21 01:58:12.273 3694 3714 W System.err:在com.sun.javafx.collections.trackableobservelist.lambda$new$17(trackableobservelist.java:44)
04-21 01:58:12.273 3694 3714 W System.err:在com.sun.javafx.collections.trackableobservelist.access$lambda$0(trackableobservelist.java)
04-21 01:58:12.273 3694 3714 W System.err:在com.sun.javafx.collections.TrackableObservableList$$Lambda$1.onChanged(未知来源)
04-21 01:58:12.279 3694 3714 W System.err:位于com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:328)
04-21 01:58:12.280 3694 3714 W System.err:位于com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:72)
04-21 01:58:12.280 3694 3714 W System.err:at javafx.collections.observeListBase.fireChange(observeListBase.java:232)
04-21 01:58:12.280 3694 3714 W System.err:at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
04-21 01:58:12.280 3694 3714 W System.err:at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
04-21 01:58:12.280 3694 3714 W System.err:at javafx.collections.observeListBase.endChange(observeListBase.java:204)
04-21 01:58:12.281 3694 3714 W System.err:at javafx.collections.ModifiableObservableListBase.addAll(ModifiableObservableListBase.java:102)
04-21 01:58:12.281 3694 3714 W System.err:在com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:237)
04-21 01:58:12.281 3694 3714 W System.err:在com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:103)
04-21 01:58:12.282 3694 3714 W System.err:位于com.gluonhq.charm.glisten.application.GlassPane.a(源文件:145)
04-21 01:58:12.282 3694 3714 W System.err:在com.glionhq.charm.glisten.application.MobileApplication.a(源文件:229)
04-21 01:58:12.282 3694 3714 W System.err:在com.glionhq.charm.glisten.application.MobileApplication.start(源文件:224)
04-21 01:58:12.282 3694 3714 W System.err:在com.sun.javafx.application.launchempl.lambda$launchApplication1$145(launchempl.java:863)
04-21 01:58:12.282 3694 3714 W System.err:在com.sun.javafx.application.launchempl.access$lambda$8(launchempl.java)
04-21 01:58:12.283 3694 3714 W System.err:位于com.sun.javafx.application.launchempl$$Lambda$9.run(未知源)
04-21 01:58:12.283 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.lambda$runAndWait$158(PlatformImpl.java:326)
04-21 01:58:12.283 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.access$lambda$6(PlatformImpl.java)
04-21 01:58:12.283 3694 3714 W System.err:位于com.sun.javafx.application.PlatformImpl$$Lambda$7.run(未知源)
04-21 01:58:12.283 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.lambda$null$156(PlatformImpl.java:295)
04-21 01:58:12.284 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.access$lambda$18(PlatformImpl.java)
04-21 01:58:12.284 3694 3714 W System.err:位于com.sun.javafx.application.PlatformImpl$$Lambda$19.run(未知源)
04-21 01:58:12.285 3694 3714 W System.err:at java.security.AccessController.doPrivileged(AccessController.java:57)
04-21 01:58:12.285 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.lambda$runLater$157(PlatformImpl.java:294)
04-21 01:58:12.285 3694 3714 W System.err:在com.sun.javafx.application.PlatformImpl.access$lambda$5(PlatformImpl.java)
04-21 01:58:12.286 3694 3714 W System.err:位于com.sun.javafx.application.platformpl$$Lambda$