Byte-Buddy-Android for current Dx

224 views Asked by At

I'm currently using byte-buddy, byte-buddy-android and Android's dx_1.7 library. The dx_1.7.jar is out of date (2012) and I wonder if someone has already built a new byte-buddy-android.jar that works with a current dx.jar (not dx_1.7.jar) provided by a more current Android SDK. How would I achieve something like this?

1

There are 1 answers

0
Rafael Winterhalter On

The reason for the outdated dependency is that Google does not distribute newer versions of their compiler via Maven Central or any other central repository. Therefore, it is outdated.

However, this should not cause any trouble as the dex compilation should be able to process any Java code even if it depends on newer Android APIs. If you, for some reason, require to use a newer version of the DX compiler, you need to recompile the module using the newer DX compiler API.