Message - Unable to install an Android application package. (Legacy)

Applies to TestComplete 15.73, last modified on March 04, 2025
The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach.

The Tested Applications project item lets you install and run applications on Android devices directly from TestComplete and your tests. If TestComplete is unable to install an application (.apk file) on the device, it shows this error message.

Possible Causes and Solutions
The application requires a later Android version than the one that is installed on the device.

Use a device, emulator or a virtual machine with an Android version supported by your application.

To learn which Android versions your tested application supports, contact the application developers.

An application with the same name but with another signing key is already installed on the device

Unselect the Keep the data and cache directories on removal option for your Android application in the TestedApps editor and try again.

-- or --

Remove the application that has the same name from the device and try again.

The Android device’s security settings deny installing the application (for Android physical devices and Android virtual machines only)

In order for TestComplete to be able to install tested applications on Android devices, configure the following security settings:

If your device is running under Android OS version 4.0 - 4.1:

  • On your Android device, go to Google Settings and disable the Verify apps option.

If your device is running under Android OS version 4.2 or later:

  • On your Android, device do the following:

    • Go to Settings | Security and disable the Verify apps option.

    -- or --

    • Go to Settings | Developer options and disable the Verify apps over USB option.

You may also need to allow installing applications from unknown sources:

  • On your Android device, go to Settings | Security (or Settings | Applications) and enable the Unknown sources option.

Configuring the settings as described above may reduce the security of your Android device.

See Also

Testing Android Applications (Legacy)
About Tested Android Applications (Legacy)

Highlight search results