Use try-with-resources.
Make use of try-with-resources, as it is now supported on API levels lower than 19 (KitKat) on AGP 3.0.0 and higher.
Make use of try-with-resources, as it is now supported on API levels lower than 19 (KitKat) on AGP 3.0.0 and higher.