Knitter
|
Posted: August 21, 2011 03:56 by Knitter
|
|
Hi, In a normal Java application (and other application/project types) one can add a secondary project as if it was a library and thus have one project referencing classes from another one. I've tried the same thing with an android project but I only get an exception when I choose a normal Java application project so I assume this is not implemented/possible in the current plugin version. Is there any way to do this? Or is there any possibility such feature gets implemented in the future? I know the use case may not be usual but if anyone is familiar with LibGDX, having such feature would be very useful. LibGDX is a game development framework that offers the possibility to develop android applications but create the same code in the desktop for ease of development and debugging, it has some backends that implement the same interfaces in Android and in desktop applications. The usual way to use this library and to make use of it's backend feature is to create two projects, one that has all the code and where the development takes place, for the most part, and one other project, and Android one, where you can just test you code in either the emulator or an Android device. In Eclipse this is possible but in NetBeans IDE I find no way to do it, and I would really like to be able to keep using the only IDE I ever need
|
Adding/referencing a normal Java project, not a library?
Replies: 2 - Last Post: September 30, 2011 17:46
by: Knitter
by: Knitter
showing 1 - 3 of 3
radim
|
Posted: September 06, 2011 09:38 by radim
|
|
If you library builds into /some/path/to/lib/dist/yourlib.jar you can try to create a link to it from /some/path/to/androidapp/libs/yourlib.jar. It can help a bit. To fix it properly in a plugin we would need to find a way how to build the android project with all dependent libraries and then correctly process all class files into .dex. It may or may not be possible with ant scripts provided by Android SDK. Diverging from these scripts is a substantial amount of work. I am not sure if anyone is willing to do this soon. -Radim |
Replies: 2 - Last Post: September 30, 2011 17:46
by: Knitter
by: Knitter







