[英]HelloWorld with JavaFXPorts and gradle on Android
so I'll try to build a mobile application with Gluon and JavaFX. 因此,我将尝试使用Gluon和JavaFX构建移动应用程序。
So, i follow this step. 所以,我按照这个步骤。
Now I try to generate apk from console, I'm in the root of project and launch 现在,我尝试从控制台生成apk,我位于项目的根目录并启动
./gradlew clean build
and that's ok, after 没关系,之后
./gradlew android
and i get that's error 我得到那是错误的
FAILURE: Build failed with an exception.
失败:构建失败,发生异常。
What went wrong: Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check.
出了什么问题:在最新检查期间无法捕获任务'mergeClassesIntoJar'的输入文件的快照。 java.io.FileNotFoundException: /Users/franksisca/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar (No such file or directory)
java.io.FileNotFoundException:/Users/franksisca/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar(无此类文件或目录)
Try: Run with --stacktrace option to get the stack trace.
尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用--info或--debug选项运行以获取更多日志输出。
BUILD FAILED
建立失败
How i solve this? 我该如何解决? Someone has a step-by-step tutorial to build a mobile application with JavaFXPorts?
有人提供了使用JavaFXPorts构建移动应用程序的分步教程吗?
thanks in advance 提前致谢
It seems android-support-multidex.jar which is necessary for the task 'mergeClassesIntoJar' is not Found. 似乎未找到任务'mergeClassesIntoJar'所需的android-support-multidex.jar。 So Go to Sdk Manager.exe, which is located in the root of ANDROID_HOME , and update all the repositories.
因此,转到ANDROID_HOME根目录中的Sdk Manager.exe,并更新所有存储库。 And run the gradle clean build.
并运行gradle clean build。
This should probably Work. 这可能应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.