'Flutter Error Failed to extract manifest from APK: Exit code -1073741515

Getting this error in android studio 3.5

Android Version 3.5

SDK 28

flutter latest version

Any one help me with this error? Getting this in windows 7 ultimate

Failed to extract manifest from APK: Exit code -1073741515 from: C:\Users\Shahryar Ahmed\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\Shahryar Ahmed\AndroidStudioProjects\flutter_app\build\app\outputs\apk\app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.


Solution 1:[1]

Try to do a

flutter clean 

This solved lots of problems for me

Solution 2:[2]

From Menu Goto Tools->Flutter->Flutter Clean. as shown in below picture.

Android Studio

Solution 3:[3]

File->Invalidate Caches/Restart..

Solution 4:[4]

I encountered the same problem and I fixed it by deleting the app.apk in the build/app/ouputs/apk directory and it worked.

Solution 5:[5]

This problem happened to me . and the error was that the file aapt.exe in this ( C:\Users\username\AppData\Local\Android\sdk\build-tools\29.0.2\aapt.exe) is opened by antivirus .

the solution is : stop the antivirus and run again it will work .

also : you can double click on aapt.exe file , if it opened by another program it will show what is this program , so you can stop or close this program and run again .

Solution 6:[6]

I went through the same problem. I just uninstalled previous build in my emulator and did flutter run again... worked for me.

Solution 7:[7]

Consider opening as administrator your android studio .exe

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Davide Bicego
Solution 2 Muhammad Qamar Iqbal
Solution 3 Shrestha Bibash
Solution 4 Theophilus Addo
Solution 5 Mohamed Gamal
Solution 6 Rajesh
Solution 7 desertnaut