d8-dexer

How to force Delphi to use D8.bat instead of dx.bat to compile Java 1.8 bytecode into DEX bytecode

北城余情 提交于 2019-12-08 07:20:51
问题 Today I faced a problem. My project needs to use some libraries (*.jar) that use Java 1.8 features. I see more and more libraries use now Java 1.8 features (like webRTC, exoplayer, etc.). In this way, we must do desugaring . Desugaring allows you to use these features on older devices by replacing new bytecodes and language APIs with older ones during the build process With d8.bat (replacement of dx.bat ), desugaring is turned on by default. So you can now use most of the latest language