Package installer keep stopping

Everything was working normally until I updated the app. After that I wanted to update Librera but it didn’t work instead it showed: Package installer keep not working. I tried to install another app and the same thing appears. The same thing happened to someone

View Summary:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.miui.packageinstaller/com.miui.packageInstaller.InstallStart}: java.lang.NullPointerException: Parameter specified as non-null is null: method j8.i.f, parameter uri
at android.app.ActivityThread.performLaunchActivity(Unknown Source:911)
at android.app.ActivityThread.handleLaunchActivity(Unknown Source:77)
at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:79)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:76)
at android.app.ActivityThread$H.handleMessage(Unknown Source:172)
at android.os.Handler.dispatchMessage(Unknown Source:19)
at android.os.Looper.loopOnce(Unknown Source:182)
at android.os.Looper.loop(Unknown Source:82)
at android.app.ActivityThread.main(Unknown Source:123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:312)
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method j8.i.f, parameter uri
at p5.i.d(Unknown Source:7)
at com.miui.packageInstaller.InstallStart.g(Unknown Source:17)
at com.miui.packageInstaller.InstallStart.onCreate(Unknown Source:467)
at android.app.Activity.performCreate(Unknown Source:127)
at android.app.Activity.performCreate(Unknown Source:1)
at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
at android.app.ActivityThread.performLaunchActivity(Unknown Source:636)
… 12 more

Did you try to debloat your device? to disable or uninstall packages?

I cleared the cache of Package Installer, reinstalled the system, but none of that worked. I install f-droid, update the repositories and then update f-droid. I try to install any app but it always comes out: Package installer keeps stopping

But looking at your error details, it looks like some issue with an update/upgrade upon not from F-Droid. Did you check on MI forums? Suggest you raise a query/issue there.

Solution: install f-droid but do not update it. another way is not to update to 14.0.3.0. But I don’t understand, I use 14.0.3.0 and before updating f-droid everything was fine
https://xiaomi.eu/community/threads/resolved-do-not-update-to-14-0-3-0-if-you-dont-want-a-broken-package-installer.69336/

Can anyone use ADB and get a logcat of the moment you try to install a package so maybe we can see the actual error? Or confirm that it’s the same as the linked forum.

Also, what is the last F-Droid Client version that installs other apps fine?

eg. do test 1.18.0: https://f-droid.org/archive/org.fdroid.fdroid_1018050.apk

1.17.0: https://f-droid.org/archive/org.fdroid.fdroid_1017050.apk

1.16.0: https://f-droid.org/archive/org.fdroid.fdroid_1016050.apk

1.15.6: https://f-droid.org/archive/org.fdroid.fdroid_1015056.apk

The version in which it works is 1.17.0 I am going to investigate what adb is

It seems like a bug in the package installer app. Try clearing its cache or updating the system software, and restart your device.