简体   繁体   English

Gluon eclipse 插件 - 如何访问 android SDK

[英]Gluon eclipse plugin - how to access the android SDK

I am wondering how to access the android sdk to use android specific code in the src/android folders of the created Gluon JavaFX project.我想知道如何访问 android sdk 以在创建的 Gluon JavaFX 项目的 src/android 文件夹中使用 android 特定代码。

I know that I can get the Android Context by using the FXActivity class.我知道我可以通过使用FXActivity类来获取 Android Context。 But I can not import that nor classes of the Android SDK (eg ActivityManager ).但我无法导入 Android SDK 的类(例如ActivityManager )。

I am using Eclipse Mars with the newest Gluon Plugin and the Android SDK Plugin installed.我正在使用 Eclipse Mars 并安装了最新的 Gluon 插件和 Android SDK 插件。

I just added android.jar and jfxdvk.jar to the Eclipse build path manually but that is probably not the way it should be done.我只是手动将 android.jar 和 jfxdvk.jar 添加到 Eclipse 构建路径中,但这可能不是它应该完成的方式。 At least it works for the moment :-)至少目前它有效:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM