Error code
Android INSTALL_FAILED_TEST_ONLY
ANDROIDINSTALL_FAILED_TEST_ONLY
Android Error Code· An error code shown by Android or the Google Play Store.
What it means
The APK cannot be installed because it is marked as a test-only build.
How to fix it
- Install using adb with the -t flag (adb install -t app.apk).
- Rebuild the APK without the testOnly flag for production distribution.
Not affiliated with Android. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.
More Android codes
- INSTALL_FAILED_ALREADY_EXISTSThe APK cannot be installed because another app with the same package name is already installed
- INSTALL_FAILED_CONTAINER_ERRORThe APK cannot be installed to the SD card or secondary storage because of a filesystem error
- INSTALL_FAILED_DUPLICATE_PERMISSIONThe APK declares a custom permission that conflicts with a permission already declared by another installed app
- INSTALL_FAILED_INSUFFICIENT_STORAGEThe APK cannot be installed because the device does not have enough free storage space
- INSTALL_FAILED_INTERNAL_ERRORThe package manager encountered an unspecified internal error while installing the APK
- INSTALL_FAILED_INVALID_APKThe APK file is malformed or corrupt and cannot be parsed by the Android package manager
- INSTALL_FAILED_MEDIA_UNAVAILABLEThe APK cannot be installed to external storage because the storage is not available
- INSTALL_FAILED_MISSING_FEATUREThe APK requires a hardware or software feature that this device does not support
- INSTALL_FAILED_NO_MATCHING_ABISThe APK does not contain native libraries compiled for any ABI supported by this device
- INSTALL_FAILED_OLDER_SDKThe APK requires a minimum Android API level higher than the API level running on this device
- INSTALL_FAILED_UPDATE_INCOMPATIBLEThe new APK cannot be installed because an existing version is already installed and the signatures do not match
- INSTALL_FAILED_VERSION_DOWNGRADEThe APK cannot be installed because its version code is lower than the currently installed version