Shahryar Ahmed
Shahryar Ahmed

Reputation: 307

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.

Upvotes: 5

Views: 7323

Answers (9)

burntoutgeek
burntoutgeek

Reputation: 1

I was also facing this issue while using VS Code, then I tried running on Android Studio because sometimes issues are related to emulators.

Though running flutter clean on the terminal from the project directory seemed to solve my problem. after that also get(pub get) your dependencies to avoid further build errors.

Upvotes: 0

Adel N. Daniel
Adel N. Daniel

Reputation: 152

After this answer: https://stackoverflow.com/a/68142732/14409491

  • I uninstalled the antivirus

  • Then I deleted all folders in the build-tools in C:\Users\user\AppData\Local\Android\Sdk\build-tools

  • After that, downloaded build-tools again from android studio

Upvotes: 0

Rajesh
Rajesh

Reputation: 71

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

Upvotes: 0

Muhammad Qamar Iqbal
Muhammad Qamar Iqbal

Reputation: 353

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

Android Studio

Upvotes: 3

Mohamed Gamal
Mohamed Gamal

Reputation: 21

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 .

Upvotes: 2

Theophilus Addo
Theophilus Addo

Reputation: 81

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

Upvotes: 1

Kfarsoft
Kfarsoft

Reputation: 59

Consider opening as administrator your android studio .exe

Upvotes: 0

Shrestha Bibash
Shrestha Bibash

Reputation: 58

File->Invalidate Caches/Restart..

Upvotes: 1

Davide Bicego
Davide Bicego

Reputation: 632

Try to do a

flutter clean 

This solved lots of problems for me

Upvotes: 14

Related Questions