1. Enable App Installations from “Unknown Sources”
Settings > Apps and Notifications > Special Access > Install Other Apps > Then click on the application that you would like to allow.
2. Tap on the toggle switch to “Trust App From This Source”
3. Go back to your app and select the .apk file to install it.