在将Javafx应用程序构建到Android中时,我得到了以下异常。
error: Error: No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher').
:processAndroidDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processAndroidDebugResources'.
> Process 'command 'E:\Android\android-sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 24.005 secs
Build failure (see the Notifications window for stacktrace): gradle :android我已经安装了android并指向ANDROID_HOME。这是我在build.gradle中的构建脚本。
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b4'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
}
mainClassName = 'com.javafxport.JavaFXPort'
jfxmobile {
android {
manifest = 'src/android/AndroidManifest.xml'
}
ios {
infoPList = file('src/ios/Default-Info.plist')
}
}我正在尝试将非常简单的javafx应用程序安装到我的android设备中。请提前帮我。
发布于 2015-09-08 06:41:56
首先,检查NetBeans的胶子插件是否更新。目前,您可以使用版本1.0.2,这将为您提供一个更新版本的插件:
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b9'
}实际上,根据这,您可以手动将其更新为:
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.1'
}现在检查Android,使用sdks安装SDK版本22,构建工具版本22,而不是23版本,这是新的Android,JavaFXPorts还不支持。
https://stackoverflow.com/questions/32448239
复制相似问题