胶子应用程序不会在Mobile上运行

时间:2015-11-17 22:07:28

标签: javafxports

我已经下载了胶子样本应用并构建了它们。它们在桌面上运行得很好,但是当我在我的Android手机上启动它们时,我得到了#34;不幸的是xxx应用已经停止了#34;信息。 Jose Pereda的https://wiki.postgresql.org/wiki/SQL_MERGE也是如此。

这是我从HelloCharm的android模拟器logcat获得的:

boolean done = false;
int row = -1;
int col = -1;

while (done == false)
{
    for (int counter = 3; counter <= 15; counter++)
    {
        if (num%counter == 0)
        {
            row = counter ;
            col = num/counter;
            done = true;
        }          
    }
}
System.out.println(row + " " + col);
int list [] [] = new int [row] [col];

我无法弄清楚如何解决这个问题。

的build.gradle

Logcat
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime FATAL EXCEPTION: main
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime  Process: org.jpereda.charm, PID: 1120
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime  java.lang.RuntimeException: Did not create correct launcher.
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime at javafxports.android.FXDalvikEntity.getLauncherAndLaunchApplication(FXDalvikEntity.java:122)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at javafxports.android.FXDalvikEntity.surfaceCreated(FXDalvikEntity.java:145)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.SurfaceView.updateWindow(SurfaceView.java:572)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.SurfaceView.access$000(SurfaceView.java:86)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:175)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1871)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.Choreographer.doCallbacks(Choreographer.java:574)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.Choreographer.doFrame(Choreographer.java:544)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.os.Handler.handleCallback(Handler.java:733)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.os.Handler.dispatchMessage(Handler.java:95)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.os.Looper.loop(Looper.java:136)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at android.app.ActivityThread.main(ActivityThread.java:5017)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at java.lang.reflect.Method.invokeNative(Native Method)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at java.lang.reflect.Method.invoke(Method.java:515)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at dalvik.system.NativeStart.main(Native Method)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime  Caused by: java.lang.RuntimeException: Failed to init method handles
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at javafxports.android.DalvikLauncher.launchApp(DalvikLauncher.java:160)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at javafxports.android.FXDalvikEntity.getLauncherAndLaunchApplication(FXDalvikEntity.java:119)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      ... 21 more
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime  Caused by: java.lang.NoSuchMethodException: createEglSurface []
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at java.lang.Class.getConstructorOrMethod(Class.java:472)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at java.lang.Class.getMethod(Class.java:857)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at javafxports.android.DalvikLauncher.initMethodHandles(DalvikLauncher.java:229)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      at javafxports.android.DalvikLauncher.launchApp(DalvikLauncher.java:158)
16:45:09.000    1120    org.jpereda.charm   ERROR   AndroidRuntime      ... 22 more

0 个答案:

没有答案