You need from a trusted source (e.g., APKMirror - verified by AndroidPolice):
The solution? Sideloading the correct —the last compatible version of Google’s app store that can breathe new life into your aging device.
Before downloading, you must allow your tablet or phone to install files from outside the Play Store. Go to > Security . Find the option labeled Unknown Sources and toggle it ON . Accept the warning message that appears.