Check out example codes for "Execution failed for task ':app:compileDebugKotlin'.". It will help you in understanding the concepts better.

Code Example 1

for me it was an internet problem
- turning off my VPN solved it

Learn ReactJs, React Native from akashmittal.com