我能够使用javafxmobileplugin
.The 命令构建/编译我的项目。我使用的命令是“gradlew androidInstall”。我能够在我的设备中安装 apk,但在启动时出现空白屏幕。在终端上,我可以看到错误。请"Could not find or load main class"
帮忙。
我的 build.gradle 如下:
// Top-level build file where you can add configuration options common to all 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'
}