This seems to be an essential step. I also had similar problems with recent build tool versions (tried several older versions but apparently not old enough...)
The build kept complaining about some "dx.jar" that could not be found.
Downgrading the build tools to 25.0.3 as described solved the problem.
And now my own personal build version of Andors Trail is happily running in the emulator!