I started porting a existing desktop Java FX application on android.
- use the gradle build to generated the android project from my java fx distributed jars
And I got rid of the problem.
05-05 18:10:37.800: I/dalvikvm(840): Could not find method java.nio.file.Paths.get, referenced from method com.xxx.helpers.Constants.<clinit>
05-05 18:10:37.800: W/dalvikvm(840): VFY: unable to resolve static method 44476: Ljava/nio/file/Paths;.get (Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
05-05 18:10:37.800: D/dalvikvm(840): VFY: replacing opcode 0x71 at 0x0049
...
05-05 18:10:39.460: W/dalvikvm(840): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/xxx/helpers/Constants;
05-05 18:10:39.460: W/System.err(840): Exception in Application init method
...
05-05 18:10:40.480: I/lens(840): Finishing terminating
05-05 18:10:40.480: V/GLASS(840): Shutting down
05-05 18:10:40.480: I/GLASS(840): DeleteGlobalRef(pApplication(0x1d2003fe))
05-05 18:10:40.480: V/FXActivity(840): notify_glassShutdown
05-05 18:10:40.490: V/FXActivity native(840): Notification queue finished
05-05 18:10:40.490: V/FXActivity(840): FXActivityEventsLoop finished.
05-05 18:10:40.490: V/GLASS(840): Shut down
05-05 18:10:40.530: W/System.err(840): java.lang.reflect.InvocationTargetException
05-05 18:10:40.530: W/System.err(840): at java.lang.reflect.Method.invokeNative(Native Method)
05-05 18:10:40.530: W/System.err(840): at java.lang.reflect.Method.invoke(Method.java:515)
05-05 18:10:40.530: W/System.err(840): at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:122)
05-05 18:10:40.530: W/System.err(840): at java.lang.Thread.run(Thread.java:841)
05-05 18:10:40.540: W/System.err(840): Caused by: java.lang.RuntimeException: Exception in Application init method
05-05 18:10:40.540: W/System.err(840): at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:889)
05-05 18:10:40.540: W/System.err(840): at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
05-05 18:10:40.540: W/System.err(840): at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
05-05 18:10:40.540: W/System.err(840): ... 1 more
05-05 18:10:40.540: W/System.err(840): Caused by: java.lang.NoClassDefFoundError: java.nio.file.Paths
05-05 18:10:40.540: W/System.err(840): at com.xxx.helpers.Constants.<clinit>(Unknown Source)
05-05 18:10:40.540: W/System.err(840): at com.xxx.view.MainLauncher.init(Unknown Source)
05-05 18:10:40.540: W/System.err(840): at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:814)
05-05 18:10:40.540: W/System.err(840): ... 3 more
which seems weird since java.nio.file.Paths.get is well defined in jdk 7 (and I would have had an error in my desktop application, wouldn't I ?)