enter image description here当我在命令gradlew中编写android时,通过并给了我jfxports / android / APKNAME.apk中的apk。安装在我的设备中时,apk很好,我输入用户名密码无法访问应用程序
并且当我编写命令gradlew androidinstall时,给我此消息enter image description here
这是我的build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.3'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
}
dependencies {
compile 'mysql:mysql-connector-java:3.1.12'
}
mainClassName = 'main.Main'
jfxmobile {
android {
applicationPackage = 'org.javafxports.ensemble'
// compileSdkVersion = 27
// manifest = 'src/android/AndroidManifest.xml'
packagingOptions {
exclude 'META-INF/INDEX.LIST'
}
}
ios {
forceLinkClasses = [ 'com.gluonhq.**.*', 'com.mysql.**.*']
infoPList = file('src/ios/Default-Info.plist')
}
}
这是日志猫:
感谢我编辑的Jose教授,请检查这个错误是什么意思?
D/libc-netbsd(13661): [getaddrinfo]: hostname=127.0.0.1; servname=(null); cache_mode=(null), netid=0; mark=0
D/libc-netbsd(13661): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
I/System.out(13661): [CDS]connect[/127.0.0.1:3306] tm:90
D/SocketClient( 252): SocketClient sendData done:
D/Posix (13661): [Posix_connect Debug]Process org.javafxports.ensemble :3306
I/System.out(13661): [CDS]close[44851]
W/System.err(13661): Exception in Application start method
I/System.out(13661): QuantumRenderer: shutdown
D/Surface (13661): Surface::setBuffersDimensions(this=0xf49d3e00,w=720,h=1134)
I/BufferQueueProducer( 230): [SurfaceView](this:0x7faa7fd000,id:3976,api:1,p:13661,c:230) new GraphicBuffer needed
W/System.err(13661): java.lang.reflect.InvocationTargetException
I/[MALI][Gralloc]( 230): Usage: 0xb00, format: 0x1 stride: 720 vertical_stride: 1134 size: 3265920
W/System.err(13661): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(13661): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err(13661): at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:188)
W/System.err(13661): at java.lang.Thread.run(Thread.java:818)
W/System.err(13661): Caused by: java.lang.RuntimeException: Exception in Application start method
W/System.err(13661): at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$138(LauncherImpl.java:182)
D/GraphicBuffer( 230): alloc, handle(0x7fa9998a60) (w:720 h:1134 s:720 f:0x1 u:0x000b00) err(0)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl.access$lambda$1(LauncherImpl.java)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl$$Lambda$2.run(Unknown Source)
W/System.err(13661): ... 1 more
W/System.err(13661): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/swing/JOptionPane;
W/System.err(13661): at controller.MainmenuController.compilpebox(MainmenuController.java:172)
W/System.err(13661): at controller.MainmenuController.initialize(MainmenuController.java:208)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
W/System.err(13661): at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
W/System.err(13661): at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
W/System.err(13661): at main.Main.start(Main.java:17)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$145(LauncherImpl.java:863)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl.access$lambda$8(LauncherImpl.java)
W/System.err(13661): at com.sun.javafx.application.LauncherImpl$$Lambda$9.run(Unknown Source)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$158(PlatformImpl.java:326)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.access$lambda$6(PlatformImpl.java)
D/GraphicBuffer(13661): register, handle(0xefc8a8e0) (w:720 h:1134 s:720 f:0x1 u:0x000b00)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl$$Lambda$7.run(Unknown Source)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.lambda$null$156(PlatformImpl.java:295)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.access$lambda$18(PlatformImpl.java)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl$$Lambda$19.run(Unknown Source)
W/System.err(13661): at java.security.AccessController.doPrivileged(AccessController.java:52)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.lambda$runLater$157(PlatformImpl.java:294)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl.access$lambda$5(PlatformImpl.java)
W/System.err(13661): at com.sun.javafx.application.PlatformImpl$$Lambda$6.run(Unknown Source)
W/System.err(13661): at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
W/System.err(13661): at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
W/System.err(13661): ... 1 more
W/System.err(13661): Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.swing.JOptionPane" on path: DexPathList[[zip file "/data/app/org.javafxports.ensemble-1/base.apk"],nativeLibraryDirectories=[/data/app/org.javafxports.ensemble-1/lib/arm, /vendor/lib, /system/lib]]
W/System.err(13661): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/System.err(13661): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
W/System.err(13661): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
W/System.err(13661): ... 27 more
W/System.err(13661): Suppressed: java.lang.ClassNotFoundException: javax.swing.JOptionPane
W/System.err(13661): at java.lang.Class.classForName(Native Method)
W/System.err(13661): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
W/System.err(13661): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
W/System.err(13661): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
W/System.err(13661): ... 28 more
W/System.err(13661): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available