Reputation: 307
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
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
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
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
Reputation: 353
From Menu Goto Tools->Flutter->Flutter Clean. as shown in below picture.
Upvotes: 3
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 .
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
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
Reputation: 632
Try to do a
flutter clean
This solved lots of problems for me
Upvotes: 14