Note
This change is currently only for the Windows version of Minecraft Bedrock.
Starting from Minecraft Bedrock version 1.21.120, the game switches from UWP the old Universal Windows Platform (UWP) to the Game Development Kit (GDK) on Windows devices. As a result, players will need to reinstall the game from the Microsoft Store to continue playing newer versions.
Here's what you need to know about Minecraft's GDK update, and how to reinstall the game while preserving your worlds and settings.
Since the GDK Update changes the file location, players will need to back up their worlds and settings before reinstalling, as they are not carried over automatically. Here's how to do it:
%LocalAppData%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang.com.mojang folder to a safe location, such as your Desktop or an external drive.
After backing up your data, you can proceed to reinstall Minecraft Bedrock with GDK support. Here's how:
Uninstall the current version of Minecraft Bedrock from your device:

To reinstall Minecraft Bedrock with GDK support, follow these steps:

If you prefer using the Minecraft Launcher, follow these steps:

After reinstalling Minecraft Bedrock, you will need to restore your worlds and settings from the backup you created earlier. Here's how:
Launch Minecraft Bedrock GDK Update to create the necessary folders.
Close the game and navigate to the new installation directory: %AppData%\Minecraft Bedrock\Users\Shared\games\com.mojang.
Copy the following folders in your backed-up com.mojang folder into this new directory, replacing any existing files. This is the new place where addons, resource packs, and behavior packs are stored.
behavior_packsresource_packsdevelopment_behavior_packsdevelopment_resource_packsdevelopment_skin_packs
%AppData%\Minecraft Bedrock\Users\<random numbers>\games\com.mojang directory, and copy the rest of files from your backed-up com.mojang folder into this location. This is where your worlds and your settings are now stored.
Once you've restored your data, you can launch Minecraft Bedrock GDK Update and enjoy the latest features and performance improvements. Make sure to check for any updates regularly to keep your game up to date.
Note
For Minecraft Preview players, your addons, worlds and settings files are stored in %APPDATA%\Minecraft Bedrock Preview\ instead of %APPDATA%\Minecraft Bedrock\.