App ID: CA7RF9A9VJTR6, com.itsacheckmate.cloverprint
Device: Station 2018
SDK Version: com.clover.sdk:clover-android-sdk:221.9
Error message simply says:
"Error installing app"
We are unable to reproduce the issue as developers. The application installs successfully on the Station 2018 Emulator and all other Clover device emulators. We have successfully sideloaded the app on a Mini 2nd Gen DevKit, and have printed from the app as designed. Emulators have been configured as described at https://docs.clover.com/clover-platform/docs/sett...
We participated in a conference call with the Merchant and Clover Technical Support. The issue remains unresolved. We would like to know how the device's debug information can be sent to Support for further escalation as described at https://community.clover.com/questions/14827/error-installing-app...
Update: My company received the following message from Clover tech support.
adb: failed to install com.itsacheckmate.cloverprint-7.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
Analyzing the APK shows you have this flag:android:testOnly="true"
In your AndroidManifest.xml.
I do not know if you are adding it in the AndroidManifest explicitly, or if it is in your build.gradle file, or if AndroidStudio added it in automatically, but regardless, you will need to remove it in order for the APK to install to the device.
I confirmed that analyzing the APK shows the undesired setting but upon searching my codebase was unable to find any reference to it.
Apparently, Android Studio 3.0+ automatically sets
android:testOnly="true" on APKs that are run from the IDE. More information is available at:
I suggest this attribute be added to the list of requirements under Section 2. Next, click the Manage APKs button. > IMPORTANT heading at https://docs.clover.com/clover-platform/docs/testing-apks