Add eclipse library for Android to unity3d project

I have an android library in the form of an eclipse project that I want to integrate with unit3d. I know that I can make a jar of eclipse and throw it in the unity of plugins / android folder. However, as I understand it, this inevitably allocates resources from the project.

If I export the unity game to an eclipse project, I can right-click and add the android project as a library. However, I do not like this approach, because it does not correspond to our current automation process, which basically is a dialog for creating a unity script.

I would like to say oneness that I want this eclipse project to be linked as an android collector on export. Does anyone know a way to do this or how to pack resources in a jar or another way to make this stuff talk?

+4
source share
2 answers

The only real answer I found is that in 4.2 you can delete the eclipse project in plugins / android and it will be connected correctly. Just hold on, I suppose.: - /

+1
source

One possible way is to use the Unity Build Pip Pipeline . Depending on the platform you are working on, you need to set up a shell script or make your stuff in C #.

It is a year ago that I was a Java / Eclipse expert, as I am currently working on iOS. The Android Developers page shows a way to manage projects through the command line .

Perhaps the best way is to use Eclipse switches, for example, --import (s. 1st answer in Create an Eclipse project on the command line? And the link provided), but on the other hand, I cannot find the switch in the help pages .

Well, actually this is not a banal answer, but maybe some inspiration :-)

+2
source

Source: https://habr.com/ru/post/1479528/


All Articles