你如何用javafxports android和ant构建一个apk?
作者:互联网
我已经尝试使用生成的项目构建apk但我不断收到错误.我一直在使用ant clean debug来创建,但是我一直遇到错误,因为它无法找到build-extras.xml我已检查并且构建附加功能位于路径:
C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalvik-sdk\android-tools\build-extras.xml
那你怎么用javafxports android和ant构建一个apk呢?
这是我的cmd日志,如果它有帮助:
C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalvik-sdk\samples\Ensemble8\android\Ensemble8Android>ant clean debug
Buildfile: C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalvik-sdk\samples\Ensemble8\android\Ensemble8Android\build.xml
BUILD FAILED
C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalvik-sdk\samples\Ensemble8\android\Ensemble8Android\build.xml:69: Cannot find C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\android-tools\build-extras.xml imported from C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalviksdk\samples\Ensemble8\android\Ensemble8Android\build.xml
Total time: 0 seconds
ant.properties:
jfx.sdk.absolute.dir=C\:/Users/svond_000/Documents/dalvik-sdk-8u40-ea3
jfx.app.absolute.dist.dir=../../ensemble
isDalvik=true
解决方法:
它正在寻找Android sdk:
C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\
但是你有它位于:
C:\Users\svond_000\Documents\dalvik-sdk-8u40-ea3\dalvik-sdk\
只需在local.properties文件或ant.properties文件中更正它即可.
标签:android,cmd,ant,javafx,javafxports 来源: https://codeday.me/bug/20190628/1318877.html