#Failed on installing APK

1 messages · Page 1 of 1 (latest)

crimson breach
#

Hi, i am getting an error while preview my build. I create a my release build with "shorebird release android --target ./lib/main2.dart --flavor user_App" CMD but when i run shorebird preview it throw me this error
//**********
2024-08-24T10:39:24.865888
✗ Exception: Unable to clear app data: Security exception: PID 14486 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.ksbm.astrochats

java.lang.SecurityException: PID 14486 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.ksbm.astrochats
at com.android.server.am.ActivityManagerService.clearApplicationUserData(ActivityManagerService.java:4209)
at com.android.server.pm.PackageManagerShellCommand.runClear(PackageManagerShellCommand.java:1778)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:209)
at android.os.ShellCommand.exec(ShellCommand.java:111)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22586)
at android.os.Binder.shellCommand(Binder.java:881)
at android.os.Binder.onTransact(Binder.java:765)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4924)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4145)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)
(0.3s)
********//

i

languid prism
#

It should work if you uninstall your app before running shorebird preview

crimson breach
#

Yes i do that, it throw me the same error but APK in installed on my device when i start my application on my device and check for update there no update available and same happend when i install my app from playstore from internal beta and there is no update available and i push a patch befor check for update

crimson breach
#

2024-08-24 11:27:33.547 22652-22732 flutter com.ksbm.astrochats E updater::updater: Update failed: Request failed with status: 404 Not Found
2024-08-24 11:27:33.547 22652-22732 flutter com.ksbm.astrochats I updater::updater: Update thread finished with status: Update had error

And these two log print when appliaction start

#

I am using shorebird:

sahilyadav@Intileos-Mac-mini ~ % shorebird doctor
Shorebird 1.2.2 • [email protected]:shorebirdtech/shorebird.git
Flutter 3.24.1 • revision 01eadfbfbbe78b64aed76ea9f422eb432fd339cb
Engine • revision 8978a5e50daa39aa1180d57c7ec991e787d7f545

✓ Shorebird is up-to-date (2.9s)
✓ Flutter install is correct (0.7s)
✓ Has access to storage.googleapis.com (2.5s)

No issues detected!

languid prism
#

The 404 is weird. That suggests that maybe your device doesn't have full internet access?

#

Are you being limited by your ISP maybe?