A huge JAR that Android Studio (or rather, dx) very long transforms into DEX?

There is one library.
She has two versions .NET and Java. I was actually interested in the second. She called it Java, on Android, no question, but I asked the developers, and said that compatible.

Only now is the library weighs about 5 MB, and in 1387 her classes (unzipped JAR and counted).

So, when I tried to add it to Android Studio and build the project - it took a very long time, for 1.5 hours, and the build everything goes.
Tried manually using dx even opened Eclipse on an old computer - the same story with all other flies, and this will not wait.

What can I do?

In the repositories it is not, it is commercial.

Analogs not to offer - I got used to it, and already a lot of code on it.

The developers of the library to write is awkward - I didn't buy it, but I plan to.

I think, it has to somehow "prepare" DEX once and for all, then a free throw from project to project along with the JAR.
But how?
About MultiDex know, but the IDE itself need a JAR to see classes, I don't want to work via reflection :)
June 26th 19 at 15:24
0 answer

Find more questions by tags JavaAndroid