Could not find or load main class - using javafx mobile plugin on Android -


i able build/compile project using javafxmobileplugin.the command used "gradlew androidinstall". able install apk in device, while launching blank screen appears. on terminal, see error "could not find or load main class".please help.

my build.gradle follow:

    // top-level build file can add configuration options common sub-projects/modules. buildscript {     repositories {         jcenter()     }     dependencies { //        classpath 'com.android.tools.build:gradle:1.1.0'         classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b7'     } } apply plugin: 'org.javafxports.jfxmobile' apply plugin: 'application' mainclassname = 'ch.nest.application.main'        repositories {         jcenter()     }  jfxmobile {     android {         applicationpackage = 'ch.nest.application'     } }  sourcesets {     main { //            manifest.srcfile 'androidmanifest.xml'         java.srcdirs = ['src/main/java/'] //            resources.srcdirs = ['src'] //            aidl.srcdirs = ['src'] //            renderscript.srcdirs = ['src'] //            res.srcdirs = ['res'] //            assets.srcdirs = ['assets']     } } project(':app') {     preloaderclassname = "ch.nest.application.main" }  task wrapper(type: wrapper) {     gradleversion = '2.2.1' } 

have tried gluon-plugin netbeans?

you can create new javafx project it, , create folders (main, desktop, android, ios) , build.gradle file.

you need update jfxmobile plugin version 1.0.0-b8 (you use b9-snapshot last changes).

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b8'     } }  apply plugin: 'org.javafxports.jfxmobile'  repositories {     jcenter() }  mainclassname = 'ch.nest.application.main'  jfxmobile {     ios {         forcelinkclasses = [ 'ch.nest.application.**.*' ]     } } 

you can build , test on desktop, or run ot tasks androidinstall test on mobile.

once have tested it, provide full code respective packages , try again.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -