Gluon eclipse plugin - how to access the android SDK

社会主义新天地 提交于 2019-12-08 02:47:19

问题


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.

I know that I can get the Android Context by using the FXActivity class. But I can not import that nor classes of the Android SDK (e.g. ActivityManager).

I am using Eclipse Mars with the newest Gluon Plugin and the Android SDK Plugin installed.


回答1:


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. At least it works for the moment :-)



来源:https://stackoverflow.com/questions/33596601/gluon-eclipse-plugin-how-to-access-the-android-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!