I have lost the aapt2 file from android sdk.
can someone please tell me from where I can download the aapt2 file, as I am not able to build my application.
I tried finding an answer but it is not available.
How did you lose it? There are two options with two different solutions:
build-tools/<version with missing aapt2>
folder, then use the SDK Manager to re-download the removed build tools.repositories { google() }
under both buildscript
and allprojects
in your main build.gradle file.