Installing Your Android APK
Congratulations on building your app! Since you've downloaded your APK from html2app.dev, you're just a few taps away from seeing your project live on your Android device.
How to Install Your Android APK
Installing an APK (Android Package) is a bit different from the Play Store, but it's very straightforward. Follow these three steps:
- Download: Locate the APK file in your Android device's Downloads folder or notification bar.
- Enable Permissions: When you tap the file, Android may ask for permission to "Install Unknown Apps." Tap Settings in the popup and toggle the switch to Allow from this source.
- Launch: Return to the installation screen and tap Install. Once finished, tap Open to launch your app!
Dealing with "Google Play Protect" Warnings
During installation of your APK, you might see a scary-looking "Blocked by Play Protect" or "Unsafe App Blocked" warning.
Why is this happening?
Because your build is a custom build and hasn't been published to the Google Play Store yet, Google's automated systems don't "recognize" it.
How to proceed
- Tap "More Details" (usually a small dropdown arrow).
- Select "Install Anyway."
- If prompted to "Send app for scanning," you can select "Don't Send" to speed up the process.
Troubleshooting: "App Not Installed" or Package Conflicts
If you see a vague "App not installed" error, your APK file isn't broken. This is almost always a Package Conflict: Android refused to replace an app already on your device, because the new build's signature doesn't match the installed one.
The Cause
Android only lets a new APK replace an installed app with the same package name (e.g., com.yourname.myapp) if both are signed with the same certificate. If the signatures differ, the install fails. The Build Number has no effect on this check. This commonly happens when you install a new build over an existing app.
How a build is signed determines whether you can update it in place:
- Unsigned builds are signed with a temporary debug key that is generated for each build. Every new unsigned APK has a different signature from the previous one, so it cannot replace an installed version.
- Signed builds use a permanent
.jkskeystore that you configure in your project's signing settings. Every build signed with the same keystore has the same signature, so later builds can update the installed app.
The Fix
- Unsigned builds: uninstall the old version first. Delete the app from your phone before installing the new APK. Uninstalling also deletes the app's local data on the device.
- Signed builds: update in place. Configure one
.jkskeystore in your project's signing settings and reuse it for every build. Installed apps can then update without being removed, and their local data is kept. Keep the keystore file and its passwords somewhere safe. Without them, you cannot publish an update that installs over an existing version. - Set a higher Build Number for updates. Installing over an existing app also requires the Build Number in your html2app settings to be higher than the one on your phone. Apply this with either approach above.