bazel 5 by default uses dx which is deprecated since 2018 and no longer available in buildtools v31 and later. This change upgrade bazel version to lates v5 release (5.4.1) and added command line flags to .bazelrc to force it to use d8 instead of dx. The hard coded buildtools version number is removed.
bazel 5 by default uses dx which is deprecated since 2018 and no longer available in buildtools v31 and later. This change upgrade bazel version to lates v5 release (5.4.1) and added command line flags to .bazelrc to force it to use d8 instead of dx. The hard coded buildtools version number is removed.