After adding the plugin, I got the following errors while running the app:
Execution failed for task ':app:mergeDebugResources'.
Could not find aapt2-windows.jar (com.android.tools.build:aapt2:3.5.1-5435860).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.5.1-5435860/aapt2-3.5.1-5435860-windows.jar
After adding the plugin, I got the following errors while running the app: