NOTICE: Please do not post this \"android.enableAapt2=false\" as an answer. It is not a solution. It is jus
Just rename your manifest file like this: AndroidManifest.xmlold, then create a new XML file and give name: AndoridManifest.xml. Then just copy the content of the old file after you remove line with tag . Build>Clean Project and then Run>debug app again. Then the problem will be disappeared.
In my app in AndroidManifest.xml tag receiver was under the application tag and this was cause of build fail with message .../android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:25: AAPT: error: unknown element <receiver> found
. After i have put it in application tag then the project has been compiled successfully. That's all