Android · Test-Only Package

Android Error Code INSTALL_FAILED_TEST_ONLY

The APK is marked test-only and cannot be installed normally.

errorLast verified 2026-11-10Android Developers: adb
Quick answer

The APK is marked test-only and cannot be installed normally.

CodeINSTALL_FAILED_TEST_ONLY
ProductAndroid
Company / originGoogle / Open Handset Alliance · United States
CategoryMobile Platforms
Platform / versionsAndroid 8 and later · adb / Android package manager
Severityerror
Official sourceAndroid Developers: adb ↗
Last verified2026-11-10

What does Android error INSTALL_FAILED_TEST_ONLY mean?

INSTALL_FAILED_TEST_ONLY means the package manager rejected the APK because its manifest is marked testOnly. Android Studio debug builds and some CI artifacts carry this flag; the package is intended for local testing, not normal distribution.

Common causes

  • The APK was built with testOnly=true in the manifest.
  • A debug or local test build was uploaded or installed outside the development workflow.
  • A CI artifact kept the test-only flag when it should have produced a release build.

How to fix it

  1. Step 1

    For local testing, use adb install -t to allow a test-only package.

  2. Step 2

    Build a release variant or remove the testOnly flag for distribution.

  3. Step 3

    Verify the APK's manifest before uploading it to a store or sharing it with testers.

When to escalate

Before you escalate: If an install failure persists after checking the APK, signature, ABI, and device policy, capture the full adb output, the APK's package name and versionCode, the device model and Android version, and contact the app's build or release owner.

Related codes

CodeNameWhat it means
INSTALL_FAILED_ALREADY_EXISTSINSTALL_FAILED_ALREADY_EXISTSThe package is already installed on the device.
INSTALL_FAILED_INSUFFICIENT_STORAGEINSTALL_FAILED_INSUFFICIENT_STORAGEThe device does not have enough storage for the install.
INSTALL_FAILED_INVALID_APKINSTALL_FAILED_INVALID_APKThe APK is corrupt or structurally invalid.
INSTALL_FAILED_NO_MATCHING_ABISINSTALL_FAILED_NO_MATCHING_ABISThe APK has no native libraries for the device's CPU architecture.
INSTALL_FAILED_OLDER_SDKINSTALL_FAILED_OLDER_SDKThe device's Android version is older than the app's minSdkVersion.

Source & verification

This page was checked against Android Developers: adb on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Google / Open Handset Alliance. Always confirm destructive or security-sensitive steps with the official documentation.