question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem parsing package & OTA Update Failure: 400

See original GitHub issue

Hi ! I have some problems implementing OTA update. I don’t think it’s a problem of link or file because I can manually install the app by downloading it. When I try to update my app (using the same code as the example you gave), this happens (permissions have been granted) :

D/FLUTTER OTA( 5335): OTA UPDATE ON LISTEN D/FLUTTER OTA( 5335): OTA UPDATE ON STARTING DOWNLOAD D/FLUTTER OTA( 5335): OTA UPDATE DOWNLOAD STARTED 4479 D/FLUTTER OTA( 5335): OTA UPDATE TRACK DOWNLOAD STARTED 4479 D/FLUTTER OTA( 5335): OTA UPDATE TRACK DOWNLOAD THREAD STARTED 4479 D/FLUTTER OTA( 5335): OTA UPDATE PENDING D/FLUTTER OTA( 5335): OTA UPDATE FAILURE: 400

And then I have the “There was a problem parsing the package.” message on the screen. When I go to my download folder, there is no apk file. I tested with and without checksum, and with it I have the same results, minus the message on screen. If it can help, I’m using a Xiaomi Mi A2 (Android 10) for my tests.

Thank you !

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MartinHlavnacommented, Jul 31, 2020

Could try to apply this solution? Looks like non-https is blocked by default in download manager.

0reactions
MartinHlavnacommented, Jul 31, 2020

I will add it to readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] How to Fix There Was A Problem Parsing the Package
Six Fixes on Parse Error on Android · 1. Go to Settings > Security · 2. Or find Location application - for other...
Read more >
How to Fix “There Was a Problem Parsing the Package” on ...
Android's “There was a problem parsing the package” usually appears when you try to install an app via a faulty APK file. The...
Read more >
Fix there was a problem parsing the package in android ...
I get the following error notification while i try to install the one apk file via my android phone :There was a problem...
Read more >
Fix There Was A Problem Parsing the Package Error On ...
You can fix the There was a problem parsing the package error on Android 12 or any other OS version by enabling unknown...
Read more >
I keep getting a parse error when trying to install an app on my ...
That means the file that you downloaded is corrupted. Delete the old file then try to re download it again, make sure you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found