配置的androidSdk无效(将JavaFX部署到Android)

时间:2015-05-19 05:52:52

标签: java android javafx-8

我开发了一个小型JavaFX应用程序,我想在我的Android手机中运行它。不幸的是,在调用gradlew androidinstall之后,我遵循教程here,出现错误。它说Configured androidSdk is invalid。我发誓android目录设置为正确路径C:\Program Files\android-sdk-windows(请参阅下面的目录图片)。

错误消息:

SigningConfig{name=debug, storeFile=C:\Documents and Settings\DQ\.android\debug.keystore, storePassword=android, keyAlias=AndroidDebugKey, keyPassword=android, storeType=C:\Documents and Settings\DQ\.android\debug.keystore}

FAILURE: Build failed with an exception.

* What went wrong:
Configured androidSdk is invalid: C:\Program Files\android-sdk-windows

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -- option to get more log output.

BUILD FAILED

Total time: 8.672 secs

目录屏幕截图:

enter image description here

我也试过C:\Program Files\android-sdk-windows\tools,但它没有用!

任何想法?

的build.gradle:

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b8'
    }
}

apply plugin: 'org.javafxports.jfxmobile'

mainClassName = 'main.java.Main'
version = '8u40'

repositories {
    jcenter()
}

jfxmobile {
    android {
        applicationPackage = 'org.javafxports.jfxmobile'
    }
 }

1 个答案:

答案 0 :(得分:3)

在sdk文件夹中没有build-tools文件夹。您应该运行tools/android并安装Android SDK Build-tools

enter image description here