13

I built a simple tic tac toe game. At first, when I ran the program on a physical android device, it worked but the day after that it didn't anymore. It shows this error.

W/zipro ( 2568): Error opening archive build\app\outputs\apk\app.apk: Invalid file ERROR: dump failed because no AndroidManifest.xml found Exit code 1 from: C:\Users\acer\AppData\Local\Android\sdk\build-tools\28.0.0\aapt dump badging build\app\outputs\apk\app.apk

Vega
  • 27,856
  • 27
  • 95
  • 103
Paolo Pepito
  • 131
  • 1
  • 1
  • 3

7 Answers7

49

You can use flutter clean command. That's worked for me. I hope be useful for you.

Mo Meshkani
  • 1,556
  • 2
  • 18
  • 27
6

I tried 'flutter clean' command and 'flutter pub get' command. That solved the problem for me.

sithum dilanga
  • 427
  • 7
  • 14
4

Follow these steps:

  1. run flutter clean
  2. run flutter pub get
  3. run flutter run or you can use Android studio Run button!

I hope this would be helpful.

Abbasihsn
  • 2,075
  • 1
  • 7
  • 17
2

I tried flutter clean and it worked. Try to run it before running flutter run

Arghya Sadhu
  • 41,002
  • 9
  • 78
  • 107
Akhil Shukla
  • 491
  • 5
  • 10
1

These 2 steps worked for me:

  1. Building an APK; flutter build apk --release
  2. Run the app: flutter run
General Grievance
  • 4,555
  • 31
  • 31
  • 45
0

Running Flutter clean then Flutter create . worked for me.

Tyler Petrov
  • 72
  • 2
  • 7
-1

Delete build file or clear cache as flutter clean