Friday, October 19, 2018

Android Studio Switching To D8 Dexer

Posted past times Jeffrey van Gogh, Software Engineering Manager

D8 right away default dex compiler

Faster, smarter app compilation is ever a destination for the Android tools teams. That's why nosotros previously announced D8, a next-generation dex compiler. D8 runs faster in addition to produces smaller .dex files alongside equivalent or improve runtime functioning when compared to the historic compiler - DX.

We lately announced that D8 has instruct the default compiler inwards Android Studio 3.1. If you lot haven't previously tried D8, nosotros promise that you lot abide by better, faster dex compilation equally you lot brand the switch.

D8 was laid about shipped inwards Android Studio 3.0 equally an opt-in feature. In improver to our ain rigorous testing, we've right away seen it perform good inwards a broad multifariousness of apps. As a result, we're confident that D8 volition move good for everyone who starts using it inwards 3.1. However, if you lot hit bring issues, you lot tin ever revert to DX for right away via this setting inwards your project's gradle.properties file:

android.enableD8=false 

If you lot hit run into something that causes you lot to disable D8, delight let us know!

Next Steps

Our destination is to ensure that everyone has access to a fast, right dex compiler. So to avoid risking regressions for whatever of our users, we'll live on deprecating DX inwards 3 phases

The laid about stage is intended to forestall prematurely deprecating DX. During this phase, DX volition rest available inwards studio. We'll create critical issues inwards it, only in that place won't live on novel features. This stage volition finally for at to the lowest degree 6 months, during which we'll evaluate whatever opened upwards D8 bugs to create upwards one's hear if in that place are regressions which would forestall roughly users from replacing DX alongside D8. The laid about stage won't terminate until the squad addresses all migration blockers. We'll live on paying extra attending to the põrnikas tracker during this window, in addition to thence If you lot run into whatever of these regressions, delight file an issue.

Once we've seen a 6 calendar month window without major regressions from DX to D8, we'll move into the minute phase. This stage volition finally for a year, in addition to is intended to ensure that fifty-fifty complex projects bring lots of fourth dimension to migrate. During this phase, we'll hold DX available, only we'll process it equally fully deprecated; nosotros won't live on fixing whatever issues.

During the 3rd in addition to concluding phase, DX volition live on removed from Android Studio. At this point, you'll necessitate to role a legacy version of the Android Gradle Plugin inwards gild to buy the farm on to construct alongside DX.

Related Post

Android Studio Switching To D8 Dexer
4/ 5
Oleh