Check how much free space is available in your phone’s internal storage. When storage is nearly full, Android may have less room to complete an update and prepare apps. Open Settings and look for Storage or Device care to review available space; menu names vary by phone.
Free up space if storage is nearly full
Remove downloads or files you no longer need, uninstall unused apps, or move photos and videos to another storage location. Then restart the phone and give Android time to finish optimizing. There is no single free-space requirement that applies to every device, but avoiding a nearly full internal storage can help.
If there is already plenty of free space
App optimization can take longer after a major update, especially on an older or slower phone or when many apps are installed. Keep the phone charged and wait for the process to finish. If it repeatedly takes an unusually long time or happens after every restart, check for another system update and restart the phone once the current optimization is complete.